react nativeでiosビルドすると以下のエラーが返ってきました。
info Found Xcode workspace "memoApp.xcworkspace" info Building (using "xcodebuild -workspace memoApp.xcworkspace -configuration Debug -scheme memoApp -destination id=B806A527-F246-46EC-9CC8-96A1DEE5231F") (node:56102) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use `node --trace-warnings ...` to show where the warning was created) error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening memoApp.xcworkspace. Command line invocation: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace memoApp.xcworkspace -configuration Debug -scheme memoApp -destination id=B806A527-F246-46EC-9CC8-96A1DEE5231F User defaults from command line: IDEPackageSupportUseBuiltinSCM = YES note: Using new build system note: Planning Analyze workspace Create build description Build description signature: c12746e0da0847dff37d250656a205ef Build description path: /Users/linkjapan/Library/Developer/Xcode/DerivedData/memoApp-cqsvbqsvwoaldscwiwkpahbfqshr/Build/Intermediates.noindex/XCBuildData/c12746e0da0847dff37d250656a205ef-desc.xcbuild note: Build preparation complete note: Building targets in dependency order error: Multiple commands produce '/Users/linkjapan/Library/Developer/Xcode/DerivedData/memoApp-cqsvbqsvwoaldscwiwkpahbfqshr/Build/Products/Debug-iphonesimulator/memoApp.app/AntDesign.ttf' note: Target 'memoApp' (project 'memoApp') has copy command from '/Users/linkjapan/memoApp/node_modules/react-native-vector-icons/Fonts/AntDesign.ttf' to '/Users/linkjapan/Library/Developer/Xcode/DerivedData/memoApp-cqsvbqsvwoaldscwiwkpahbfqshr/Build/Products/Debug-iphonesimulator/memoApp.app/AntDesign.ttf' note: That command depends on command in Target 'memoApp' (project 'memoApp'): script phase “[CP] Copy Pods Resources” ,,,,,,, info Run CLI with --verbose flag for more details.
ビルドのキャッシュが邪魔しているのかと考え、キャッシュクリアしてみたのですが、治りません。
試したコマンド watchman watch-del-all lsof -n -P -i :8081 -t | xargs kill rm -rf ios/build rm -rf android/app/build rm -rf node_modules && npm install rm -rf ~/Library/Caches/CocoaPods rm -rf Pods rm -rf ~/Library/Developer/Xcode/DerivedData cd ios pod deintegrate pod setup bundle exec pod install
他のプロジェクトではビルドができているため、ディレクトリ内のコード記述に誤りがあるのかと思いますが、キャッシュクリア以外に改修方法ございますでしょうか。
追記
関連記事を参考にして、xcodeのbuildをlegacyに変更したり、違うポートでビルドしたりしましたが変わらずこのエラーでした。
あなたの回答
tips
プレビュー