无法构建 iOS 项目。 ReactNative Cocoapods (M1 Mac)

时间:2021-06-19 06:02:21

标签: android ios reactjs xcode react-native

info 找到 Xcode 工作区“test.xcworkspace” 信息构建(使用“xcodebuild -workspace test.xcworkspace -configuration Debug -scheme test -destination id=FBBF8750-4AB7-45C3-B382-02B30CBDADF9”) (节点:94702)警告:在循环依赖中访问模块导出的不存在的属性“padLevels” (使用 node --trace-warnings ... 显示警告的创建位置) 错误 无法构建 iOS 项目。我们运行了“xcodebuild”命令,但它以错误代码 65 退出。要进一步调试构建日志,请考虑使用 Xcode.app 构建您的应用程序,方法是打开 test.xcworkspace。 命令行调用: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace test.xcworkspace -configuration Debug -scheme test -destination id=FBBF8750-4AB7-45C3-B382-02B30CBDADF9

来自命令行的用户默认值: IDEPackageSupportUseBuiltinSCM = YES

从命令行构建设置: TOOLCHAINS = com.apple.dt.toolchain.XcodeDefault

注意:使用新的构建系统 注意:并行构建目标 注意:规划构建 注意:分析工作区 注意:构建构建描述 注意:构建准备完成 CreateBuildDirectory /Users/sazzadkhan/Library/Developer/Xcode/DerivedData/test-cjhxwlbrhikcboeqmixuohsiccis/Build/Intermediates.noindex cd /Users/sazzadkhan/Documents/apps/test/ios 内置创建构建目录/Users/sazzadkhan/Library/Developer/Xcode/DerivedData/test-cjhxwlbrhikcboemixuohsiccis/Build/Intermediates.noindex

CreateBuildDirectory /Users/sazzadkhan/Library/Developer/Xcode/DerivedData/test-cjhxwlbrhikcboeqmixuohsiccis/Build/Products cd /Users/sazzadkhan/Documents/apps/test/ios 内置创建构建目录/Users/sazzadkhan/Library/Developer/Xcode/DerivedData/test-cjhxwlbrhikcboemixuohsiccis/Build/Products

CreateBuildDirectory /Users/sazzadkhan/Library/Developer/Xcode/DerivedData/test-cjhxwlbrhikcboeqmixuohsiccis/Build/Products/Debug-iphonesimulator cd /Users/sazzadkhan/Documents/apps/test/ios 内置创建构建目录/Users/sazzadkhan/Library/Developer/Xcode/DerivedData/test-cjhxwlbrhikcboemixuohsiccis/Build/Products/Debug-iphonesimulator

CreateBuildDirectory /Users/sazzadkhan/Library/Developer/Xcode/DerivedData/test-cjhxwlbrhikcboeqmixuohsiccis/Build/Products/Debug-iphonesimulator/libevent cd /Users/sazzadkhan/Documents/apps/test/ios 内置创建构建目录/Users/sazzadkhan/Library/Developer/Xcode/DerivedData/test-cjhxwlbrhikcboemixuohsiccis/Build/Products/Debug-iphonesimulator/libevent

CreateBuildDirectory /Users/sazzadkhan/Library/Developer/Xcode/DerivedData/test-cjhxwlbrhikcboeqmixuohsiccis/Build/Products/Debug-iphonesimulator/boost-for-react-native cd /Users/sazzadkhan/Documents/apps/test/ios 内置创建构建目录/Users/sazzadkhan/Library/Developer/Xcode/DerivedData/test-cjhxwlbrhikcboemixuohsiccis/Build/Products/Debug-iphonesimulator/boost-for-react-native

CreateBuildDirectory /Users/sazzadkhan/Library/Developer/Xcode/DerivedData/test-cjhxwlbrhikcboeqmixuohsiccis/Build/Products/Debug-iphonesimulator/glog cd /Users/sazzadkhan/Documents/apps/test/ios 内置创建构建目录/Users/sazzadkhan/Library/Developer/Xcode/DerivedData/test-cjhxwlbrhikcboemixuohsiccis/Build/Products/Debug-iphonesimulator/glog

CreateBuildDirectory /Users/sazzadkhan/Library/Developer/Xcode/DerivedData/test-cjhxwlbrhikcboeqmixuohsiccis/Build/Products/Debug-iphonesimulator/YogaKit cd /Users/sazzadkhan/Documents/apps/test/ios 内置创建构建目录/Users/sazzadkhan/Library/Developer/Xcode/DerivedData/test-cjhxwlbrhikcboemixuohsiccis/Build/Products/Debug-iphonesimulator/YogaKit

这个错误本周发生了 3 次,昨晚它工作正常,但是当我再次运行 build 时出现这个错误

编辑:我已经解决了这个问题......对于那些有这个错误的人来说,这只是可可豆荚的更新......你只需要等待几个小时甚至一天,它就会起作用再次......如果你等了一天还没有修复它可能是你的错误......尝试删除node_modules,然后npm install / yarn install。然后转到 ios 文件夹,然后 pod install 如果它不起作用,请尝试创建一个新的 React Native 项目,然后传输您的代码,不要忘记也传输您的包...不要通过复制粘贴 package.json 来传输您的包并只传输 npm install 包手动

0 个答案:

没有答案