gpt4 book ai didi

ios - React Native ios 构建在 react-native run-ios 上失败

转载 作者:技术小花猫 更新时间:2023-10-29 10:36:48 30 4
gpt4 key购买 nike

遇到这个错误

** BUILD FAILED **

The following build commands failed: CompileC /Users/karthikn/AwesomeProject/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTTabBarItem.o Views/RCTTabBarItem.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure)

Installing build/Build/Products/Debug-iphonesimulator/AwesomeProject.app An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): Failed to install the requested application An application bundle was not found at the provided path. Provide a valid path to the desired application bundle. Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/AwesomeProject.app/Info.plist Print: Entry, ":CFBundleIdentifier", Does Not Exist

最佳答案

Xcode 8.2 仍然出现同样的错误。下面三行为我修复了它:)降级 react(16.0.0-alpha.12 -> 16.0.0-alpha.6) & react-native(0.45.0 -> 0.44.0)
rm -rf node_modules/react
npm i react@16.0.0-alpha.6 -S
npm i react-native@0.44.0 -S
然后运行react-native run-ios

关于ios - React Native ios 构建在 react-native run-ios 上失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43391417/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com