react-native-cli: 1.0.0
react-native: 0.39.2
我克隆了一个反应本机项目。然后我跑了npm install
进而react-native run-ios
。该项目因以下错误而失败。
请注意该项目在 xcode 中运行良好。
有什么想法吗?
以下命令产生了分析器问题:
Analyze RCTLocationObserver.m
(1 个带有分析器问题的命令)
以下构建命令失败:
CompileC /Users/jordanmc/Documents/src/Safetypin%20React-Native/ios/build/Build/Intermediates/RCTLinking.build/Debug-iphonesimulator/RCTLinking.build/Objects-normal/x86_64/RCTLinkingManager.o RCTLinkingManager.m 正常 x86_64 Objective-C com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/jordanmc/Documents/src/Safetypin%20React-Native/ios/build/Build/Intermediates/RCTGeolocation.build/Debug-iphonesimulator/RCTGeolocation.build/Objects-normal/x86_64/RCTLocationObserver.o RCTLocationObserver.m 正常 x86_64 Objective-C com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/jordanmc/Documents/src/Safetypin%20React-Native/ios/build/Build/Intermediates/RCTText.build/Debug-iphonesimulator/RCTText.build/Objects-normal/x86_64/RCTTextManager.o RCTTextManager.m 正常 x86_64 Objective-C com.apple.compilers.llvm.clang.1_0.compiler
(失败3次)
安装 build/Build/Products/Debug-iphonesimulator/Safetypin.app
处理命令时遇到错误(域 = NSPOSIXErrorDomain,代码 = 2):
无法安装请求的应用程序
在提供的路径中找不到应用程序包。
提供所需应用程序包的有效路径。
打印:条目,“:CFBundleIdentifier”,不存在
命令失败:/usr/libexec/PlistBuddy -c 打印:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/Safetypin.app/Info.plist
打印:条目,“:CFBundleIdentifier”,不存在
所以,我也遇到了乔丹同样的问题。react-native run-ios
在 ./ios/build 文件夹中创建 Products & Intermediates 文件夹,但问题是有效路径指向 ./ios/build/Build。我一直在做的是通过发出以下命令在 ./ios/build 中手动创建 Build/ 文件夹:
cd ./ios/build
mkdir Build
cd Build
然后,我对文件夹进行符号链接:
ln -s ../Products .
ln -s ../Intermediates .
你应该能够得到react-native run-ios
再次工作。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)