IOS Release 真机 模式下,出现Undefined symbols for architecture armv7:



  • 如果是模拟器没有问题,换了真机就出现错误了

    Undefined symbols for architecture armv7:
    "_RCTSetLogFunction", referenced from:
    -[cxtask_reactTests testRendersWelcomeScreen] in cxtask_reactTests.o
    ld: symbol(s) not found for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)



  • 又仔细看了日志,发现是 cxtask_reactTests ,我在 edit scheme 里面把 cxtask_reactTests 的勾都去掉了,就可以了



  • 哈哈,感谢您的帖子,解决了我的问题。


登录后回复