Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

“xcodebuild” command but it exited with error code 65 #25240

Closed
ldco2016 opened this issue Jun 12, 2019 · 89 comments
Closed

“xcodebuild” command but it exited with error code 65 #25240

ldco2016 opened this issue Jun 12, 2019 · 89 comments
Labels

Comments

@ldco2016
Copy link

ldco2016 commented Jun 12, 2019

After upgrading to React Native 0.59.9 and React 16.8.3 and attempted to run react-native run-ios, I get this error:

info Undefined symbols for architecture x86_64:
  "_JSClassCreate", referenced from:
      facebook::jsc::JSCRuntime::createObject(std::__1::shared_ptr<facebook::jsi::HostObject>)::$_0::operator()() const in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::$_1::operator()() const in libReact.a(JSCRuntime.o)
  "_JSContextGetGlobalObject", referenced from:
      facebook::jsc::JSCRuntime::global() in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::HostFunctionMetadata::initialize(OpaqueJSContext const*, OpaqueJSValue*) in libReact.a(JSCRuntime.o)
  "_JSEvaluateScript", referenced from:
      facebook::jsc::JSCRuntime::evaluateJavaScript(std::__1::unique_ptr<facebook::jsi::Buffer const, std::__1::default_delete<facebook::jsi::Buffer const> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in libReact.a(JSCRuntime.o)
  "_JSGlobalContextCreateInGroup", referenced from:
      facebook::jsc::JSCRuntime::JSCRuntime() in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::JSCRuntime() in libReact.a(JSCRuntime.o)
  "_JSGlobalContextRelease", referenced from:
      facebook::jsc::JSCRuntime::JSCRuntime() in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::~JSCRuntime() in libReact.a(JSCRuntime.o)
      facebook::jsc::JSCRuntime::JSCRuntime() in libReact.a(JSCRuntime.o)
  "_JSGlobalContextRetain", referenced from:
      facebook::jsc::JSCRuntime::JSCRuntime(OpaqueJSContext*) in libReact.a(JSCRuntime.o)
  "_JSObjectCallAsConstructor", referenced from:
      facebook::jsc::JSCRuntime::callAsConstructor(facebook::jsi::Function const&, facebook::jsi::Value const*, unsigned long) in libReact.a(JSCRuntime.o)
  "_JSObjectCallAsFunction", referenced from:
      facebook::jsc::JSCRuntime::call(facebook::jsi::Function const&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long) in libReact.a(JSCRuntime.o)
  "_JSObjectCopyPropertyNames", referenced from:
      facebook::jsc::JSCRuntime::getPropertyNames(facebook::jsi::Object const&) in libReact.a(JSCRuntime.o)

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 NFIBEngage.xcworkspace

** BUILD FAILED **


The following commands produced analyzer issues:
	Analyze /Users/danale/Projects/engage-application.mobile/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp normal x86_64
	Analyze Base/RCTModuleMethod.mm normal x86_64
(2 commands with analyzer issues)

React Native version:

info
  React Native Environment Info:
    System:
      OS: macOS High Sierra 10.13.6
      CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
      Memory: 161.54 MB / 16.00 GB
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 11.10.1 - /usr/local/bin/node
      Yarn: 1.10.1 - /usr/local/bin/yarn
      npm: 6.7.0 - /usr/local/bin/npm
      Watchman: 4.7.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
      Android SDK:
        API Levels: 23, 25, 26, 27, 28
        Build Tools: 23.0.1, 26.0.2, 27.0.3, 28.0.3
    IDEs:
      Android Studio: 3.4 AI-183.5429.30.34.5452501
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.8.3 => 16.8.3
      react-native: 0.59.9 => 0.59.9
    npmGlobalPackages:
      react-native-cli: 2.0.1
      react-native-git-upgrade: 0.2.7

Steps To Reproduce

  1. Run react-native run-ios

Describe what you expected to happen:

Well, since I did upgrade I had expected some bugs, but I am unfamiliar with the inner workings of Xcode in conjunction with React Native.

Snack, code example, or link to a repository:

https://www.dropbox.com/s/ygyrhnno8aou4jg/RNsampleApp.zip?dl=0

I was eventually able to resolve the above error by following this guide:

https://stackoverflow.com/questions/54515175/undefined-symbols-for-architecture-arm64-jsclasscreate

and running react-native link.

However, now inside of Metro Bundler I get this error:

VM16:1 GET http://localhost:8081/Users/danale/Library/Developer/CoreSimulator/Devices/9E045643-4D13-41F4-A144-781A6513E884/data/Containers/Bundle/Application/AC51BEE9-3B17-4246-A747-D9D47B460B58/NFIBEngage.app/main.jsbundle 404 (Not Found)
(anonymous) @ VM16:1
deltaUrlToBlobUrl @ deltaUrlToBlobUrl.js:31
getBlobUrl @ (index):209
ws.onmessage @ (index):184
(index):190 Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0

I am not exactly sure what is going on there, but its referencing a line of code found inside of ios/NFIBEngage.xcodeproj/project.pbxproj:

/* Begin PBXFileReference section */
		008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = "<group>"; };
13B07FAE1A68108700A75B9A /* NFIBEngage */ = {
			isa = PBXGroup;
			children = (
				6B2F5E9F2007D4B500FF4B14 /* UA.entitlements */,
				6B2F5E9E2007D4AC00FF4B14 /* QA.entitlements */,
				6B2F5E9D2007D49F00FF4B14 /* DEV.entitlements */,
				6B2F5E9C2007D44300FF4B14 /* PROD.entitlements */,
				6BC6C0D81FD1CB6400AD9FC6 /* Configuration */,
				008F07F21AC5B25A0029DE68 /* main.jsbundle */,

When I attempt a react-native run-ios a second time, I still get a successful build in Xcode but with this error:

info ** BUILD SUCCEEDED **


info Installing build/NFIBEngage/Build/Products/Debug-iphonesimulator/NFIBEngage.app
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=164):
Unable to lookup in current state: Shutdown
Print: Entry, ":CFBundleIdentifier", Does Not Exist
error Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/NFIBEngage/Build/Products/Debug-iphonesimulator/NFIBEngage.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

and when I attempt to open the app in the Simulator, it does not boot up and in debugger-ui I get this error:

VM16:1 GET http://localhost:8081/Users/danale/Library/Developer/CoreSimulator/Devices/9E045643-4D13-41F4-A144-781A6513E884/data/Containers/Bundle/Application/AC51BEE9-3B17-4246-A747-D9D47B460B58/NFIBEngage.app/main.jsbundle 404 (Not Found)
(anonymous) @ VM16:1
deltaUrlToBlobUrl @ deltaUrlToBlobUrl.js:31
getBlobUrl @ (index):209
ws.onmessage @ (index):184
(index):190 Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0
async function (async)
ws.onmessage @ (index):184
18(index):115 WebSocket connection to 'ws://localhost:8081/debugger-proxy?role=debugger&name=Chrome' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

It gets to the splash screen with the above error and immediately crashes. I then tried adding this script:

"build:ios": "react-native bundle --entry-file='index.ios.js' --bundle-output='./ios/NFIBEngage/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'", but instead of fixing the issue I got this error:

npm run build:ios

> [email protected] build:ios /Users/danale/Projects/engage-application.mobile
> react-native bundle --entry-file='index.ios.js' --bundle-output='./ios/NFIBEngage/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'

Loading dependency graph, done.
transform[stderr]: Trace: The node type SpreadProperty has been renamed to SpreadElement
transform[stderr]:     at Object.isSpreadProperty (/Users/danale/Projects/engage-application.mobile/node_modules/@babel/types/lib/validators/generated/index.js:4304:11)
transform[stderr]:     at hasSpread (/Users/danale/Projects/engage-application.mobile/node_modules/babel-plugin-transform-object-rest-spread/lib/index.js:38:13)
transform[stderr]:     at PluginPass.ObjectExpression (/Users/danale/Projects/engage-application.mobile/node_modules/babel-plugin-transform-object-rest-spread/lib/index.js:234:14)
transform[stderr]:     at newFn (/Users/danale/Projects/engage-application.mobile/node_modules/@babel/traverse/lib/visitors.js:193:21)
transform[stderr]:     at NodePath._call (/Users/danale/Projects/engage-application.mobile/node_modules/@babel/traverse/lib/path/context.js:53:20)
transform[stderr]:     at NodePath.call (/Users/danale/Projects/engage-application.mobile/node_modules/@babel/traverse/lib/path/context.js:40:17)
transform[stderr]:     at NodePath.visit (/Users/danale/Projects/engage-application.mobile/node_modules/@babel/traverse/lib/path/context.js:88:12)
transform[stderr]:     at TraversalContext.visitQueue (/Users/danale/Projects/engage-application.mobile/node_modules/@babel/traverse/lib/context.js:118:16)
transform[stderr]:     at TraversalContext.visitSingle (/Users/danale/Projects/engage-application.mobile/node_modules/@babel/traverse/lib/context.js:90:19)
transform[stderr]:     at TraversalContext.visit (/Users/danale/Projects/engage-application.mobile/node_modules/@babel/traverse/lib/context.js:146:19)
error node_modules/react-native-keyboard-manager/index.js: Cannot read property 'bindings' of null. Run CLI with --verbose flag for more details.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:ios: `react-native bundle --entry-file='index.ios.js' --bundle-output='./ios/NFIBEngage/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build:ios script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/danale/.npm/_logs/2019-06-13T17_58_48_335Z-debug.log

Then I tried booting up the application via Xcode and it boots up the simulator and attempts to open the application inside of simulator but it hangs on splash screen and Xcode gave me this error:

error: EOF while parsing a value at line 1 column 0

Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports.

and it also indicates this configuration inside of Xcode:

/**
 * SplashScreen
 * 启动屏
 * from:http://www.devio.org
 * Author:CrazyCodeBoy
 * GitHub:https://github.com/crazycodeboy
 * Email:[email protected]
 */

#import "SplashScreen.h"
#import <React/RCTBridge.h>

static bool waiting = true;
static bool addedJsLoadErrorObserver = false;

@implementation SplashScreen
- (dispatch_queue_t)methodQueue{
    return dispatch_get_main_queue();
}
RCT_EXPORT_MODULE()

+ (void)show {
    if (!addedJsLoadErrorObserver) {
        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(jsLoadError:) name:RCTJavaScriptDidFailToLoadNotification object:nil];
        addedJsLoadErrorObserver = true;
    }

    while (waiting) {
        NSDate* later = [NSDate dateWithTimeIntervalSinceNow:0.1];
        [[NSRunLoop mainRunLoop] runUntilDate:later]; Thread 1: signal SIGBART
    }
}

I am still stuck on this main.jsbundle not being found. Can anyone assist here?

@ldco2016 ldco2016 added the Bug label Jun 12, 2019
@KingAmo
Copy link

KingAmo commented Jun 13, 2019

i have the same error when i use react-native run-ios , but in Xcode,click the run button ,everything is fine

@AlbertVilaCalvo
Copy link

I just got this error after upgrading to 0.60.4 (from 0.59.2).

To fix it I've had to rename the xcworkspace folder from gazella.xcworkspace to Gazella.xcworkspace.

I could successfully run the project from within XCode, but got the error when doing react-native run-ios on the terminal. Now everything works fine.

@dilipchandima
Copy link

I have the same error after upgrading to 0.60.4 from 0.59.9

@AlbertVilaCalvo your solution is not working for me

@dilipchandima
Copy link

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 mobile.xcworkspace. Run CLI with --verbose flag for more details.
User defaults from command line:
    IDEDerivedDataPathOverride = /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile

Prepare build
note: Using legacy build system

=== BUILD AGGREGATE TARGET AppCenter OF PROJECT Pods WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD AGGREGATE TARGET AppCenterReactNativeShared OF PROJECT Pods WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD AGGREGATE TARGET Fabric OF PROJECT Pods WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD AGGREGATE TARGET Crashlytics OF PROJECT Pods WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET DoubleConversion OF PROJECT Pods WITH CONFIGURATION Debug ===

Check dependencies

Write auxiliary files
write-file /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DoubleConversion-all-non-framework-target-headers.hmap
write-file /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DoubleConversion-all-target-headers.hmap
write-file /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DoubleConversion-project-headers.hmap
write-file /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DoubleConversion-own-target-headers.hmap
write-file /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DoubleConversion.hmap

CompileC /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/Objects-normal/x86_64/cached-powers.o DoubleConversion/double-conversion/cached-powers.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/dileepa/programs/jdk/Contents/Home//bin:/Users/dileepa/Library/Android/sdk/tools:/Users/dileepa/Library/Android/sdk/platform-tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu++14 -stdlib=libc++ -fmodules -fmodules-cache-path=/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/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 -Wdocumentation -Wunreachable-code -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -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 -Wno-newline-eof -Wno-c++11-extensions -DPOD_CONFIGURATION_DEBUG=1 -DDEBUG=1 -DCOCOAPODS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mios-simulator-version-min=9.0 -g -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -Wunguarded-availability -index-store-path /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Index/DataStore -iquote /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DoubleConversion-generated-files.hmap -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DoubleConversion-own-target-headers.hmap -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DoubleConversion-all-target-headers.hmap -iquote /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DoubleConversion-project-headers.hmap -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Products/Debug-iphonesimulator/DoubleConversion/include -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods/Headers/Private -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods/Headers/Private/DoubleConversion -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods/Headers/Public -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods/Headers/Public/DoubleConversion -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DerivedSources-normal/x86_64 -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DerivedSources/x86_64 -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DerivedSources -F/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Products/Debug-iphonesimulator/DoubleConversion -Wno-unreachable-code -include /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods/Target\ Support\ Files/DoubleConversion/DoubleConversion-prefix.pch -MMD -MT dependencies -MF /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/Objects-normal/x86_64/cached-powers.d --serialize-diagnostics /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/Objects-normal/x86_64/cached-powers.dia -c /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods/DoubleConversion/double-conversion/cached-powers.cc -o /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/Objects-normal/x86_64/cached-powers.o

CompileC /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/Objects-normal/x86_64/DoubleConversion-dummy.o Target\ Support\ Files/DoubleConversion/DoubleConversion-dummy.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/dileepa/programs/jdk/Contents/Home//bin:/Users/dileepa/Library/Android/sdk/tools:/Users/dileepa/Library/Android/sdk/platform-tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu11 -fobjc-arc -fobjc-weak -fmodules -fmodules-cache-path=/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/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 -Wdocumentation -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 -DPOD_CONFIGURATION_DEBUG=1 -DDEBUG=1 -DCOCOAPODS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.0 -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -fobjc-abi-version=2 -fobjc-legacy-dispatch -index-store-path /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Index/DataStore -iquote /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DoubleConversion-generated-files.hmap -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DoubleConversion-own-target-headers.hmap -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DoubleConversion-all-target-headers.hmap -iquote /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DoubleConversion-project-headers.hmap -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Products/Debug-iphonesimulator/DoubleConversion/include -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods/Headers/Private -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods/Headers/Private/DoubleConversion -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods/Headers/Public -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods/Headers/Public/DoubleConversion -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DerivedSources-normal/x86_64 -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DerivedSources/x86_64 -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DerivedSources -F/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Products/Debug-iphonesimulator/DoubleConversion -include /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods/Target\ Support\ Files/DoubleConversion/DoubleConversion-prefix.pch -MMD -MT dependencies -MF /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/Objects-normal/x86_64/DoubleConversion-dummy.d --serialize-diagnostics /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/Objects-normal/x86_64/DoubleConversion-dummy.dia -c /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods/Target\ Support\ Files/DoubleConversion/DoubleConversion-dummy.m -o /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/Objects-normal/x86_64/DoubleConversion-dummy.o
error: PCH was compiled with module cache path '/Users/dileepa/projects/rhino/comapny/androidX/mobile/ios/build/mobile/ModuleCache.noindex/3DNI3SU7WPYK3', but the path is currently '/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/ModuleCache.noindex/3DNI3SU7WPYK3'
1 error generated.

CompileC /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/Objects-normal/x86_64/bignum-dtoa.o DoubleConversion/double-conversion/bignum-dtoa.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/dileepa/programs/jdk/Contents/Home//bin:/Users/dileepa/Library/Android/sdk/tools:/Users/dileepa/Library/Android/sdk/platform-tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu++14 -stdlib=libc++ -fmodules -fmodules-cache-path=/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/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 -Wdocumentation -Wunreachable-code -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -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 -Wno-newline-eof -Wno-c++11-extensions -DPOD_CONFIGURATION_DEBUG=1 -DDEBUG=1 -DCOCOAPODS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mios-simulator-version-min=9.0 -g -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -Wunguarded-availability -index-store-path /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Index/DataStore -iquote /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DoubleConversion-generated-files.hmap -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DoubleConversion-own-target-headers.hmap -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DoubleConversion-all-target-headers.hmap -iquote /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DoubleConversion-project-headers.hmap -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Products/Debug-iphonesimulator/DoubleConversion/include -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods/Headers/Private -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods/Headers/Private/DoubleConversion -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods/Headers/Public -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods/Headers/Public/DoubleConversion -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DerivedSources-normal/x86_64 -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DerivedSources/x86_64 -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DerivedSources -F/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Products/Debug-iphonesimulator/DoubleConversion -Wno-unreachable-code -include /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods/Target\ Support\ Files/DoubleConversion/DoubleConversion-prefix.pch -MMD -MT dependencies -MF /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/Objects-normal/x86_64/bignum-dtoa.d --serialize-diagnostics /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/Objects-normal/x86_64/bignum-dtoa.dia -c /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods/DoubleConversion/double-conversion/bignum-dtoa.cc -o /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/Objects-normal/x86_64/bignum-dtoa.o

CompileC /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/Objects-normal/x86_64/double-conversion.o DoubleConversion/double-conversion/double-conversion.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/dileepa/programs/jdk/Contents/Home//bin:/Users/dileepa/Library/Android/sdk/tools:/Users/dileepa/Library/Android/sdk/platform-tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu++14 -stdlib=libc++ -fmodules -fmodules-cache-path=/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/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 -Wdocumentation -Wunreachable-code -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -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 -Wno-newline-eof -Wno-c++11-extensions -DPOD_CONFIGURATION_DEBUG=1 -DDEBUG=1 -DCOCOAPODS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mios-simulator-version-min=9.0 -g -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -Wunguarded-availability -index-store-path /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Index/DataStore -iquote /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DoubleConversion-generated-files.hmap -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DoubleConversion-own-target-headers.hmap -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DoubleConversion-all-target-headers.hmap -iquote /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DoubleConversion-project-headers.hmap -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Products/Debug-iphonesimulator/DoubleConversion/include -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods/Headers/Private -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods/Headers/Private/DoubleConversion -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods/Headers/Public -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods/Headers/Public/DoubleConversion -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DerivedSources-normal/x86_64 -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DerivedSources/x86_64 -I/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/DerivedSources -F/Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Products/Debug-iphonesimulator/DoubleConversion -Wno-unreachable-code -include /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods/Target\ Support\ Files/DoubleConversion/DoubleConversion-prefix.pch -MMD -MT dependencies -MF /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/Objects-normal/x86_64/double-conversion.d --serialize-diagnostics /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/Objects-normal/x86_64/double-conversion.dia -c /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/Pods/DoubleConversion/double-conversion/double-conversion.cc -o /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/Objects-normal/x86_64/double-conversion.o


** BUILD FAILED **


The following build commands failed:
	CompileC /Users/dileepa/projects/rhino/comapny/comapny-mobile-client/ios/build/mobile/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/DoubleConversion.build/Objects-normal/x86_64/DoubleConversion-dummy.o Target\ Support\ Files/DoubleConversion/DoubleConversion-dummy.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

This is my console

@tusharmutreja
Copy link

Hey, I have the same error when I run react-native run-ios after upgrading the react-native version to 0.59.5.

And also Xcode not able to open the project.

Any Help?

@poojapmagar
Copy link

Facing same error is there any solution for this

@AdeelMughal
Copy link

Same issue. Any solution so far ?

@nicolas-rohricht
Copy link

Hi guys.
Did you find any solution for that?

@nicolas-rohricht
Copy link

I resolved my issue changing the Build Active Architecture Only to:

Debug >> Yes
Release >> No

On xCode, select your Project Target >> Build Settings >> Architetures >> Build Active Architecture Only.

After changing that, react-native run-ios was executed like a charm.

@tostavio
Copy link

Same problem here.

With xcode, app runs.
With react-native run-ios, don't.

@marciosalinodias
Copy link

Hey guys,
Same error.

I fixed just by changing the name from "AwesomeProject" to "awesomeproject"

Works for me ;)

@git-sid-go
Copy link

Hello! I faced this issue with React Native version 0.61.2 and this worked for me.
Navigate to the ios folder of the app and run the command pod install
Once that is done, go back to the root directory and run react-native run-ios

@vibdheeraj
Copy link

@git-sid-go thanx this solution work for me.

@azizuysal
Copy link

In your project folder:

cd ios
rm -rf build/
cd ..

Run react-native run-ios again.

@josemvcerqueira
Copy link

Make sure you open your /ios on xcode and go to workspace settings and set the build system to legacy

@JoshK2
Copy link

JoshK2 commented Oct 29, 2019

Hello! I faced this issue with React Native version 0.61.2 and this worked for me.
Navigate to the ios folder of the app and run the command pod install
Once that is done, go back to the root directory and run react-native run-ios

It's worked for me, thanks!

@winni4eva
Copy link

Hello! I faced this issue with React Native version 0.61.2 and this worked for me.
Navigate to the ios folder of the app and run the command pod install
Once that is done, go back to the root directory and run react-native run-ios

This worked for me

@valentinorusconi
Copy link

I am facing this problem with react native 0.59.10 and expo, is there any solution?

@iampeterbanjo
Copy link

i had the same issue and restarting my computer worked 🤷‍♂

@Ashutosh8127
Copy link

go inside ios folder in terminal
cd ios/
run pod install
after run react-native run-ios

@RupamShaw
Copy link

I just got this error after upgrading to 0.60.4 (from 0.59.2).

To fix it I've had to rename the xcworkspace folder from gazella.xcworkspace to Gazella.xcworkspace.

I could successfully run the project from within XCode, but got the error when doing react-native run-ios on the terminal. Now everything works fine.
worked for me by changing Uppercase both files .xcodeproj and .xcworkspace

@mvfsillva
Copy link

mvfsillva commented Dec 18, 2019

To solve this problem, I did something like @Ashutosh8127:

cd ios/
$ rm -rf build/
$ pod install
cd ..
$ npm run ios #or npx react-native run-ios

@shixiaoquan
Copy link

In your project folder:

cd ios
rm -rf build/
cd ..

Run react-native run-ios again.

It's worked for me tks

@diegotauchert
Copy link

I resolved my issue changing the Build Active Architecture Only to:

Debug >> Yes
Release >> No

On xCode, select your Project Target >> Build Settings >> Architetures >> Build Active Architecture Only.

After changing that, react-native run-ios was executed like a charm.

it worked for me... thanks 👍🏼

@engtom
Copy link

engtom commented Jan 16, 2020

This may occur especially when you change the bundle ID, the provisioning profiles, create new targets etc. So only running pod install may not work. In this cases, we have to also remove the build folder, like @azizuysal said, executing this:

- cd ios
- rm -rf build/

After this everything should get back to normality.

@chacaa
Copy link

chacaa commented Jan 16, 2020

Try changing the Build System property from New Build System (Default) to Legacy Build System. You can do it from here File -> Workspace Settings. That change did the job for me, hope it helps you!

@kockok
Copy link

kockok commented Jan 17, 2020

pod install

I got error code 65 after updating to the latest react-native,
the above steps worked.

@ayepRahman
Copy link

Hello! I faced this issue with React Native version 0.61.2 and this worked for me.
Navigate to the ios folder of the app and run the command pod install
Once that is done, go back to the root directory and run react-native run-ios

Work! great!

@rldona
Copy link

rldona commented Jun 27, 2021

I share with you the solution that has worked for me...

It seems that the behavior of a project in iOS is very similar to a project in JavaScript. Sometimes you have to delete the node_modules folder and reinstall the dependencies.

Follow the next steps:

Close Metro in the terminal and the app in the iOS simulator (remove the app from the simulator if necessary)

cd ios
rm -rf Pods
rm -rf Podfile.lock
pod install

You can finally rebuild the project:

npx react-native run-ios

Good luck and I hope it helps 🚀

@Aditya23456
Copy link

Go to ios/Podfile comment out Flipper, then in the console: cd ios, pod install, cd .. then start metro server and run your ios project. Should be working now :)

Thank you very much. I tried each and every fix mentioned in the thread but nothing worked. Atlast, removing flipper and it was fixed. Is this a desirable fix or will removing flipper cause any issues?

@tanloiit2010
Copy link

i had the same issue and restarting my computer worked 🤷‍♂

This work for me. Thank you!!!

@abdul-ahad-devs
Copy link

I have tried all of the above mentioned solutions but none of them worked for me. I have been using xcode version 12.5.1, react-native version 0.64 and my cocoapods version is 1.10.2

@fouss6C
Copy link

fouss6C commented Aug 14, 2021

Guy , don't waste your time.
This issue may depends on your environnement , I did everything here.
But what fixed mine is just to comment use_flipper() line on podfile under iOS dir.

@rajiv-eulogik
Copy link

Damn these answers are more confusing

@rick-liruixin
Copy link

My project is solved in this way:
yarn add react-native-reanimated@^2.3.0

@ItztrippleA
Copy link

In your project folder:

cd ios
rm -rf build/
cd ..

Run react-native run-ios again.

did not work for me

@MartinDKnudsen
Copy link

dont do cd iOS

Just be in your root folder and run
npx pod-install

:-)

@dima-devs
Copy link

Same problem here.

With xcode, app runs. With react-native run-ios, don't.

Then please try with specific simulator or device. like this

yarn ios --simulator "iPhone 13" or npx react-native run-ios --simulator "iPhone 13"

;P

@ilyaFD
Copy link

ilyaFD commented Oct 22, 2021

Guys, I tried all the ways with reinstalling pod and node_modules, setting up the Build system and nothing worked. Maybe there are ways to find out the exact cause of this error? Now it doesn't look informative :(

@marcosabb
Copy link

Using a terminal with Rosetta enabled did worked for me 😉

@rivaros
Copy link

rivaros commented Oct 28, 2021

We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, is a "generic" error.

In each particular case you have to check messages returned after it, and instead of trying 100+ solutions above, just find a real reason and create a separate issue (if it does not exist already).

Here is a working way:

  1. Just run react-native run-ios, it will compile some swift modules, and fail
  2. Run again react-native run-ios > output.log (now it will have less lines, only related to failure)
  3. Start checking the file thoroughly, the message will not necessarily contain word error, but it would explain something acting not as expected. Checking has to be done from the beginning. Last lines after
    ** BUILD FAILED ** might not be informative, or may reference not the initial reason of failure.

p.s.: for example in my case it was a problem with PREFIX - conflict between yarn & nvm. reinstalling yarn
helped to link it with nvm's node, and things started to work (nvm-sh/nvm#1645), solution
in the end.

But again, in your case it might be something absolutely different, thus so many "solutions" in the topic.
Good luck with your search.

@okanthony
Copy link

okanthony commented Jan 9, 2022

Looks as though there is a known issue with Flipper and [email protected]. I'm also using nvm and saw some errors around incorrect prefix, so I:

  • Commented out use_flipper!() in ios/Podfile
  • Deleted ios/Pods and ios/Podfile.lock
  • In ios dir ran pod install
  • Completely uninstalled node and nvm
  • Reinstalled nvm, node, and npm

I was then able to successfully generate an iOS build

@NikolaP93
Copy link

Using a terminal with Rosetta enabled did worked for me 😉

Praise the lord!

For anyone on macbook m1, this was the only fix that worked

@zahrafalah
Copy link

I fixed it by downgrading my Xcode to 13.2.

@amirhosein5858
Copy link

maybe this helped someone
i faced with this error and the problem was duplicate resources in build phases -> Copy pods recources
in my case there was many duplicate fonts

@6zc
Copy link

6zc commented May 2, 2022

For me, it was just a silly mistake. Don't contain any space " " in your path. It seems pod would cut the path at " ".

@azizmobarak
Copy link

if someone get it check if you have permission if not run with sudo

@vikasswebdev
Copy link

For me, it was just a silly mistake. Don't contain any space " " in your path. It seems pod would cut the path at " ".

thank you bro i wasted two day of this

@joaogabrielramos28
Copy link

For me, it was just a silly mistake. Don't contain any space " " in your path. It seems pod would cut the path at " ".

Thank you so much bro. Solved my problem !

facebook-github-bot pushed a commit that referenced this issue Sep 22, 2022
Summary:
This sync includes the following changes:
- **[0cac4d54c](facebook/react@0cac4d54c )**: Double invoked effects on suspended children ([#25307](facebook/react#25307)) //<Samuel Susla>//
- **[3d615fc14](facebook/react@3d615fc14 )**: Grammar. Removed doubles of the word "the". ([#25295](facebook/react#25295)) //<Victoria Graf>//
- **[6e3bc8a2e](facebook/react@6e3bc8a2e )**: [DevTools] Check if Proxy exists before creating DispatcherProxy ([#25278](facebook/react#25278)) //<Tianyu Yao>//
- **[e7fc04b29](facebook/react@e7fc04b29 )**: [react-dom] Reorganize react-dom internals to match react ([#25277](facebook/react#25277)) //<Josh Story>//
- **[0b54e0047](facebook/react@0b54e0047 )**: Handle rejections to avoid uncaught rejections ([#25272](facebook/react#25272)) //<Sebastian Markbåge>//
- **[c5d06fdc5](facebook/react@c5d06fdc5 )**: [Flight] Fix Webpack Chunk Loading ([#25271](facebook/react#25271)) //<Sebastian Markbåge>//
- **[975b64464](facebook/react@975b64464 )**: [Flight] response.readRoot() -> use(response) ([#25267](facebook/react#25267)) //<Sebastian Markbåge>//
- **[60fbb7b14](facebook/react@60fbb7b14 )**: [Flight] Implement FlightClient in terms of Thenable/Promises instead of throwing Promises ([#25260](facebook/react#25260)) //<Sebastian Markbåge>//
- **[c91a1e03b](facebook/react@c91a1e03b )**: experimental_useEvent ([#25229](facebook/react#25229)) //<Lauren Tan>//
- **[346c7d4c4](facebook/react@346c7d4c4 )**: straightford explicit types ([#25253](facebook/react#25253)) //<Jan Kassens>//
- **[3401e9200](facebook/react@3401e9200 )**: useMemoCache implementation ([#25143](facebook/react#25143)) //<Joseph Savona>//
- **[0556bab32](facebook/react@0556bab32 )**: [Transition Tracing] More Accurate End Time ([#25105](facebook/react#25105)) //<Luna Ruan>//
- **[5fdcd23aa](facebook/react@5fdcd23aa )**: Flow: upgrade to 0.140 ([#25252](facebook/react#25252)) //<Jan Kassens>//
- **[5c43c6f02](facebook/react@5c43c6f02 )**: Unwind the current workInProgress if it's suspended ([#25247](facebook/react#25247)) //<Sebastian Markbåge>//
- **[e52fa4c57](facebook/react@e52fa4c57 )**: Add early exit to strict mode ([#25235](facebook/react#25235)) //<Samuel Susla>//
- **[6aa38e74c](facebook/react@6aa38e74c )**: Flow: enable unsafe-addition error ([#25242](facebook/react#25242)) //<Jan Kassens>//
- **[ba7b6f418](facebook/react@ba7b6f418 )**: Flow: upgrade to 0.132 ([#25244](facebook/react#25244)) //<Jan Kassens>//
- **[9328988c0](facebook/react@9328988c0 )**: Flow: fix Fiber typed as any ([#25241](facebook/react#25241)) //<Jan Kassens>//
- **[c739cef2f](facebook/react@c739cef2f )**: Flow: ReactFiberHotReloading recursive type ([#25225](facebook/react#25225)) //<Jan Kassens>//
- **[c156ecd48](facebook/react@c156ecd48 )**: Add some test coverage for some error cases ([#25240](facebook/react#25240)) //<Sebastian Markbåge>//
- **[3613284dc](facebook/react@3613284dc )**: experimental_use(context) for server components and ssr ([#25226](facebook/react#25226)) //<mofeiZ>//
- **[269c4e975](facebook/react@269c4e975 )**: Prevent infinite re-renders in StrictMode + Offscreen ([#25203](facebook/react#25203)) //<Samuel Susla>//
- **[8003ab9cf](facebook/react@8003ab9cf )**: Flow: remove explicit object syntax ([#25223](facebook/react#25223)) //<Jan Kassens>//
- **[492c6e29e](facebook/react@492c6e29e )**: Flow: upgrade to 0.127 ([#25221](facebook/react#25221)) //<Jan Kassens>//
- **[8a9e7b6ce](facebook/react@8a9e7b6ce )**: Flow: implicit-inexact-object=error ([#25210](facebook/react#25210)) //<Jan Kassens>//
- **[37cc6bf12](facebook/react@37cc6bf12 )**: Remove useDeferredValue and useTransition from Flight subset ([#25215](facebook/react#25215)) //<Sebastian Markbåge>//

Changelog:
[General][Changed] - React Native sync for revisions c28f313...0cac4d5

jest_e2e[run_all_tests]

Reviewed By: rickhanlonii

Differential Revision: D39696377

fbshipit-source-id: 113878d22d6244b8555b5fb86db1da5d43f7cfd9
@ishaqashraf
Copy link

had the same issue.
what worked for me is to change the appExample.xcworkspace to AppExample.xcworkspace

@leonardorb
Copy link

leonardorb commented Mar 21, 2023

cd ios
rm -rf build
rm -rf Pods
pod install
cd ..
npx react-native run-ios

@Kyu
Copy link

Kyu commented Apr 20, 2023

Simply adding my dev account to XCode this

OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this issue May 22, 2023
Summary:
This sync includes the following changes:
- **[0cac4d54c](facebook/react@0cac4d54c )**: Double invoked effects on suspended children ([facebook#25307](facebook/react#25307)) //<Samuel Susla>//
- **[3d615fc14](facebook/react@3d615fc14 )**: Grammar. Removed doubles of the word "the". ([facebook#25295](facebook/react#25295)) //<Victoria Graf>//
- **[6e3bc8a2e](facebook/react@6e3bc8a2e )**: [DevTools] Check if Proxy exists before creating DispatcherProxy ([facebook#25278](facebook/react#25278)) //<Tianyu Yao>//
- **[e7fc04b29](facebook/react@e7fc04b29 )**: [react-dom] Reorganize react-dom internals to match react ([facebook#25277](facebook/react#25277)) //<Josh Story>//
- **[0b54e0047](facebook/react@0b54e0047 )**: Handle rejections to avoid uncaught rejections ([facebook#25272](facebook/react#25272)) //<Sebastian Markbåge>//
- **[c5d06fdc5](facebook/react@c5d06fdc5 )**: [Flight] Fix Webpack Chunk Loading ([facebook#25271](facebook/react#25271)) //<Sebastian Markbåge>//
- **[975b64464](facebook/react@975b64464 )**: [Flight] response.readRoot() -> use(response) ([facebook#25267](facebook/react#25267)) //<Sebastian Markbåge>//
- **[60fbb7b14](facebook/react@60fbb7b14 )**: [Flight] Implement FlightClient in terms of Thenable/Promises instead of throwing Promises ([facebook#25260](facebook/react#25260)) //<Sebastian Markbåge>//
- **[c91a1e03b](facebook/react@c91a1e03b )**: experimental_useEvent ([facebook#25229](facebook/react#25229)) //<Lauren Tan>//
- **[346c7d4c4](facebook/react@346c7d4c4 )**: straightford explicit types ([facebook#25253](facebook/react#25253)) //<Jan Kassens>//
- **[3401e9200](facebook/react@3401e9200 )**: useMemoCache implementation ([facebook#25143](facebook/react#25143)) //<Joseph Savona>//
- **[0556bab32](facebook/react@0556bab32 )**: [Transition Tracing] More Accurate End Time ([facebook#25105](facebook/react#25105)) //<Luna Ruan>//
- **[5fdcd23aa](facebook/react@5fdcd23aa )**: Flow: upgrade to 0.140 ([facebook#25252](facebook/react#25252)) //<Jan Kassens>//
- **[5c43c6f02](facebook/react@5c43c6f02 )**: Unwind the current workInProgress if it's suspended ([facebook#25247](facebook/react#25247)) //<Sebastian Markbåge>//
- **[e52fa4c57](facebook/react@e52fa4c57 )**: Add early exit to strict mode ([facebook#25235](facebook/react#25235)) //<Samuel Susla>//
- **[6aa38e74c](facebook/react@6aa38e74c )**: Flow: enable unsafe-addition error ([facebook#25242](facebook/react#25242)) //<Jan Kassens>//
- **[ba7b6f418](facebook/react@ba7b6f418 )**: Flow: upgrade to 0.132 ([facebook#25244](facebook/react#25244)) //<Jan Kassens>//
- **[9328988c0](facebook/react@9328988c0 )**: Flow: fix Fiber typed as any ([facebook#25241](facebook/react#25241)) //<Jan Kassens>//
- **[c739cef2f](facebook/react@c739cef2f )**: Flow: ReactFiberHotReloading recursive type ([facebook#25225](facebook/react#25225)) //<Jan Kassens>//
- **[c156ecd48](facebook/react@c156ecd48 )**: Add some test coverage for some error cases ([facebook#25240](facebook/react#25240)) //<Sebastian Markbåge>//
- **[3613284dc](facebook/react@3613284dc )**: experimental_use(context) for server components and ssr ([facebook#25226](facebook/react#25226)) //<mofeiZ>//
- **[269c4e975](facebook/react@269c4e975 )**: Prevent infinite re-renders in StrictMode + Offscreen ([facebook#25203](facebook/react#25203)) //<Samuel Susla>//
- **[8003ab9cf](facebook/react@8003ab9cf )**: Flow: remove explicit object syntax ([facebook#25223](facebook/react#25223)) //<Jan Kassens>//
- **[492c6e29e](facebook/react@492c6e29e )**: Flow: upgrade to 0.127 ([facebook#25221](facebook/react#25221)) //<Jan Kassens>//
- **[8a9e7b6ce](facebook/react@8a9e7b6ce )**: Flow: implicit-inexact-object=error ([facebook#25210](facebook/react#25210)) //<Jan Kassens>//
- **[37cc6bf12](facebook/react@37cc6bf12 )**: Remove useDeferredValue and useTransition from Flight subset ([facebook#25215](facebook/react#25215)) //<Sebastian Markbåge>//

Changelog:
[General][Changed] - React Native sync for revisions c28f313...0cac4d5

jest_e2e[run_all_tests]

Reviewed By: rickhanlonii

Differential Revision: D39696377

fbshipit-source-id: 113878d22d6244b8555b5fb86db1da5d43f7cfd9
@ConnorDuncan
Copy link

For me I was using React-Native-Firebase and had a duplicate GoogleService-Info.plist file. I opened xcode, deleted it in the directory, and it started working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests