react-native-maps: iOS build fails with error code 65
Is this a bug report?
No.
Have you read the Installation Instructions?
Yes
Environment
"react": "16.8.3",
"react-native": "0.59.8",
"react-native-maps": "^0.24.2"
macOs: 10.14.4 xCode: 10.2.1
Steps to Reproduce
- react-native init MapTest
- make Podfile inside ios folder and fill data from this instruction
- run pod install
- update AppDelegate.m by instruction
- run pod install
- run react-native run-ios
Expected Behavior
Run application
Actual Behavior
Returns this error
1 error generated.
WriteAuxiliaryFile /Users/mikhail/Projects/MapTest/node_modules/react-native/Libraries/Blob/build/RCTBlob.build/Debug-iphonesimulator/RCTBlob.build/Objects-normal/x86_64/RCTBlob.LinkFileList (in target: RCTBlob)
cd /Users/mikhail/Projects/MapTest/node_modules/react-native/Libraries/Blob
write-file /Users/mikhail/Projects/MapTest/node_modules/react-native/Libraries/Blob/build/RCTBlob.build/Debug-iphonesimulator/RCTBlob.build/Objects-normal/x86_64/RCTBlob.LinkFileList
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 MapTest.xcworkspace
** BUILD FAILED **
The following commands produced analyzer issues:
Analyze /Users/mikhail/Projects/MapTest/node_modules/react-native/ReactCommon/jsi/jsi.cpp normal x86_64
Analyze /Users/mikhail/Projects/MapTest/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp normal x86_64
Analyze /Users/mikhail/Projects/MapTest/node_modules/react-native/React/Base/RCTModuleMethod.mm normal x86_64
(3 commands with analyzer issues)
The following build commands failed:
CompileC /Users/mikhail/Projects/MapTest/node_modules/react-native/Libraries/Blob/build/RCTBlob.build/Debug-iphonesimulator/RCTBlob.build/Objects-normal/x86_64/RCTFileReaderModule.o /Users/mikhail/Projects/MapTest/node_modules/react-native/Libraries/Blob/RCTFileReaderModule.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
. Run CLI with --verbose flag for more details.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 28
If you don’t have cocoapods installed you need to
sudo gem install cocoapodspod installreact-native run-iosif error persists,
/iosfolder in x-codeI don’t t have any other idea than this one:
cd ios && pod repo update && pod install && pod update😐
I fixed the error 65 in this way:
In Xcode: 1) Go to File -> Workspace Settings, and change the Build System to ‘Legacy Build System’; 2) Go to Product -> Clean, (wait Clean finish). 3) Go to React Native app root folder, and run ‘react-native run-ios’
(References are based on a Mac environment)
@durdevic stupid question, did you run
react-native link react-native-maps?same question
When I first built a clean project, it was successful, immediately after adding maps I get this error on both “New Build System” and “Legacy Build System”.
Funny enough I can’t build my last production version of the app that’s published on store. It must be the problem with XCode because I can’t build anything after the update.
Error code on Legacy Build
Error code on New Build
xxxx-MacBook-Pro-2:SampleApp xxxxx$ react-native run-ios info Found Xcode project “SampleApp.xcodeproj” info Building (using “xcodebuild -project SampleApp.xcodeproj -configuration Debug -scheme SampleApp -destination id=BDB7A3CA-20F5-4C22-B29B-C6B50C36F802”) … 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 SampleApp.xcodeproj. Run CLI with --verbose flag for more details. Command line invocation: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project SampleApp.xcodeproj -configuration Debug -scheme SampleApp -destination id=BDB7A3CA-20F5-4C22-B29B-C6B50C36F802
note: Using new build system note: Building targets in parallel note: Planning build note: Using build description from disk PhaseScriptExecution Start\ Packager /Users/xxxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/Script-FD10A7F022414F080027D42C.sh (in target ‘SampleApp’ from project ‘SampleApp’) cd /Users/suthra/Desktop/react/SampleApp/ios /bin/sh -c /Users/xxxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/Script-FD10A7F022414F080027D42C.sh
CompileC /Users/xxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/Objects-normal/x86_64/main.o /Users/xxxx/Desktop/react/SampleApp/ios/SampleApp/main.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target ‘SampleApp’ from project ‘SampleApp’) cd /Users/xxxxx/Desktop/react/SampleApp/ios export LANG=en_US.US-ASCII /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target x86_64-apple-ios10.0-simulator -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/xxxx/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/xxxx/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DDEBUG=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fobjc-abi-version=2 -fobjc-legacy-dispatch -index-store-path /Users/suthra/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Index/DataStore -iquote /Users/suthra/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/SampleApp-generated-files.hmap -I/Users/xxxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/SampleApp-own-target-headers.hmap -I/Users/xxxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/SampleApp-all-target-headers.hmap -iquote /Users/xxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/SampleApp-project-headers.hmap -I/Users/xxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Products/Debug-iphonesimulator/include -I/Users/suthra/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/DerivedSources-normal/x86_64 -I/Users/xxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/DerivedSources/x86_64 -I/Users/xxxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/DerivedSources -F/Users/xxxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Products/Debug-iphonesimulator -MMD -MT dependencies -MF /Users/xxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/Objects-normal/x86_64/main.d --serialize-diagnostics /Users/xxxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/Objects-normal/x86_64/main.dia -c /Users/xxxxx/Desktop/react/SampleApp/ios/SampleApp/main.m -o /Users/xxxxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/Objects-normal/x86_64/main.o In file included from /Users/suthra/Desktop/react/SampleApp/ios/SampleApp/main.m:3: /Users/suthra/Desktop/react/SampleApp/ios/SampleApp/AppDelegate.h:1:9: fatal error: ‘React/RCTBridgeDelegate.h’ file not found #import <React/RCTBridgeDelegate.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated.
CompileC /Users/xxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/Objects-normal/x86_64/AppDelegate.o /Users/suthra/Desktop/react/SampleApp/ios/SampleApp/AppDelegate.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target ‘SampleApp’ from project ‘SampleApp’) cd /Users/xxxx/Desktop/react/SampleApp/ios export LANG=en_US.US-ASCII /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target x86_64-apple-ios10.0-simulator -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/xxxx/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/xxxx/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DDEBUG=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fobjc-abi-version=2 -fobjc-legacy-dispatch -index-store-path /Users/xxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Index/DataStore -iquote /Users/suthra/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/SampleApp-generated-files.hmap -I/Users/xxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/SampleApp-own-target-headers.hmap -I/Users/xxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/SampleApp-all-target-headers.hmap -iquote /Users/xxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/SampleApp-project-headers.hmap -I/Users/suthra/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Products/Debug-iphonesimulator/include -I/Users/xxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/DerivedSources-normal/x86_64 -I/Users/xxxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/DerivedSources/x86_64 -I/Users/xxxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/DerivedSources -F/Users/suthra/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Products/Debug-iphonesimulator -MMD -MT dependencies -MF /Users/xxxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/Objects-normal/x86_64/AppDelegate.d --serialize-diagnostics /Users/xxxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/Objects-normal/x86_64/AppDelegate.dia -c /Users/xxxx/Desktop/react/SampleApp/ios/SampleApp/AppDelegate.m -o /Users/xxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/Objects-normal/x86_64/AppDelegate.o In file included from /Users/xxxx/Desktop/react/SampleApp/ios/SampleApp/AppDelegate.m:1: /Users/suthra/Desktop/react/SampleApp/ios/SampleApp/AppDelegate.h:1:9: fatal error: ‘React/RCTBridgeDelegate.h’ file not found #import <React/RCTBridgeDelegate.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~ warning: Could not read serialized diagnostics file: Cannot Load File: Failed to open diagnostics file (in target ‘SampleApp’ from project ‘SampleApp’)
** BUILD FAILED **
The following build commands failed: CompileC /Users/xxxx/Library/Developer/Xcode/DerivedData/SampleApp-adshqmrqlnmgwzafnranhgtbyazh/Build/Intermediates.noindex/SampleApp.build/Debug-iphonesimulator/SampleApp.build/Objects-normal/x86_64/main.o /Users/suthra/Desktop/react/SampleApp/ios/SampleApp/main.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure)
I’ve git the same issue. It appeared after I run “npm install react-devtools --save”. Mb it’s not connected, I have no idea, but I noticed a pattern.
To fix it I run:
This is not a react-native-maps issue. I had this just yesterday with another project not containing any map. The fix for me was to switch in Xcode the workspace settings to the new build system and back to legacy (I have a CI machine with an older Xcode)
I’ll close the issue now as it’s not related.