iOS集成reactnative 遇到的问题
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了iOS集成reactnative 遇到的问题相关的知识,希望对你有一定的参考价值。
参考技术A 1、No podspec found for `FBReactNativeSpec` in `../node_modules/react-native/Libraries/FBReactNativeSpec`换成
../node_modules/react-native/React/FBReactNativeSpec
2、CocoaPods could not find compatible versions for pod "ReactCommon/callinvoker"
换成
pod 'React-callinvoker', :path => "../node_modules/react-native/ReactCommon/callinvoker"
3、Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec
换成
RCT-Folly', :podspec => '../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec
4、Unable to find a specification for `React-runtimeexecutor (= 0.64.2)` depended upon by `React-cxxreact`
添加
pod 'React-runtimeexecutor', :path => '../node_modules/react-native/ReactCommon/runtimeexecutor'
5、[!] Unable to find a specification for `React-perflogger (= 0.64.2)` depended upon by `React-cxxreact`
添加
pod 'React-perflogger', :path => '../node_modules/react-native/ReactCommon/reactperflogger'
iOS支付宝集成时遇到的问题整理
1.模拟器上运行正常,但是真机调试时报编译链接错误
:ld: ‘/Users/wangqipeng/Desktop/iOS支付宝官方文档/AlixPayDemo/libcrypto.a(bio_lib.o)‘ does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决方法:在Build Setting中查找bitcode,将Enable Bitcode改为NO就可以了
2.平时调试程序时,有时会报No matching provisioning profiles found 的警告,真机调试会报错
解决方法:修改Bundle Identifier ,给当前的bundle id随便添加几个字符就行,但是真机调试过之后要改为原来的Bundle id,否则不可以连续运行的
3.ld: file not found: /Users/wangqipeng/Library/Developer/Xcode/DerivedData/UITest-fwixyyhkflydsbeztbylckujcsyo/Build/Products/Debug-iphonesimulator/UITest.app/UITest clang: error: linker command failed with exit code 1 (use -v to see invocation)
将项目考到新电脑中出现错误
改Build Setting中改一下项目名字就好了
原因,项目名不同造成的
Build Setting----》Product Name---
以上是关于iOS集成reactnative 遇到的问题的主要内容,如果未能解决你的问题,请参考以下文章
占坑!利用 JenKins 持续集成 iOS 项目时遇到的问题