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

react-native run-ios BUILD-FAILED #42

Closed
maithuy opened this issue Jan 15, 2019 · 10 comments
Closed

react-native run-ios BUILD-FAILED #42

maithuy opened this issue Jan 15, 2019 · 10 comments

Comments

@maithuy
Copy link

maithuy commented Jan 15, 2019

Steps:

Create an app on the Shoutem builder site
Login via terminal and Clone the app
Run react-native run-ios

Scanning folders for symlinks in /Users/thuynguyen/Development/alohahealthnetwork/aloha-app/node_modules (24ms)
Found Xcode workspace AlohaApp.xcworkspace
Building using "xcodebuild -workspace AlohaApp.xcworkspace -configuration Debug -scheme AlohaApp -destination id=80A240B5-8F78-4DCA-BBF3-8465E2409816 -derivedDataPath build"
User defaults from command line:

IDEDerivedDataPathOverride = /Users/thuynguyen/Development/alohahealthnetwork/aloha-app/ios/build

note: Using new build system

note: Planning build

note: Constructing build description

Build system information

error: /Users/thuynguyen/Development/alohahealthnetwork/aloha-app/ios/Pods/Target Support Files/Pods-AlohaApp/Pods-AlohaApp.debug.xcconfig: unable to open file (in target "AlohaApp" in project "AlohaApp") (in target 'AlohaApp')

Build system information

error: /Users/thuynguyen/Development/alohahealthnetwork/aloha-app/ios/Pods/Target Support Files/Pods-AlohaApp/Pods-AlohaApp.debug.xcconfig: unable to open file (in target "AlohaApp" in project "AlohaApp") (in target 'AlohaApp')

Build system information

error: /Users/thuynguyen/Development/alohahealthnetwork/aloha-app/ios/Pods/Target Support Files/Pods-AlohaApp/Pods-AlohaApp.debug.xcconfig: unable to open file (in target "AlohaApp" in project "AlohaApp") (in target 'AlohaApp')

Build system information

error: /Users/thuynguyen/Development/alohahealthnetwork/aloha-app/ios/Pods/Target Support Files/Pods-AlohaApp/Pods-AlohaApp.debug.xcconfig: unable to open file (in target "AlohaApp" in project "AlohaApp") (in target 'AlohaApp')

Build system information

warning: The iOS Simulator deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.1. (in target 'RNVectorIcons')

Build system information

warning: The iOS Simulator deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.1. (in target 'RCTRestart')

Build system information

warning: The iOS Simulator deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.1. (in target 'SplashScreen')

Build system information

warning: The iOS Simulator deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.1. (in target 'RCTVideo')

Build system information

warning: The iOS Simulator deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.1. (in target 'RNFlurryAnalytics')

Build system information

warning: The iOS Simulator deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.1. (in target 'RNShopify')

Build system information

warning: The iOS Simulator deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.1. (in target 'RCTGoogleAnalyticsBridge')

Build system information

warning: Capabilities for AlohaApp may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the build settings editor. (in target 'AlohaApp')

** BUILD FAILED **

Installing build/Build/Products/Debug-iphonesimulator/AlohaApp.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The bundle identifier of the application could not be determined.
Ensure that the application's Info.plist contains a value for CFBundleIdentifier.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

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

@maithuy
Copy link
Author

maithuy commented Jan 15, 2019

I tried opting out from New Build System
Open AppName/ios/AppName.xcworkspace , in Xcode, click on File -> Workspace settings... and then set the build system to the legacy one.
It still failed.

Creating app with react-native init does not have this issue.

@Definitely-Not-Vlad
Copy link
Contributor

It looks like your deployment target is too low for our dependencies:

the iOS Simulator deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.1. 

Upping the simulator deployment target to 8.0 should resolve the issue, let us know.

@maithuy
Copy link
Author

maithuy commented Jan 16, 2019

The xcode deployment target setting was 10 which was already higher 8.0.
Setting to 8 still doesn't resolve the issue

Scanning folders for symlinks in /Users/thuynguyen/Development/alohahealthnetwork/aloha-app/node_modules (24ms)
Found Xcode workspace AlohaApp.xcworkspace
Building using "xcodebuild -workspace AlohaApp.xcworkspace -configuration Debug -scheme AlohaApp -destination id=80A240B5-8F78-4DCA-BBF3-8465E2409816 -derivedDataPath build"
User defaults from command line:

IDEDerivedDataPathOverride = /Users/thuynguyen/Development/alohahealthnetwork/aloha-app/ios/build

note: Using new build system

note: Planning build

note: Constructing build description

Build system information

error: /Users/thuynguyen/Development/alohahealthnetwork/aloha-app/ios/Pods/Target Support Files/Pods-AlohaApp/Pods-AlohaApp.debug.xcconfig: unable to open file (in target "AlohaApp" in project "AlohaApp") (in target 'AlohaApp')

Build system information

error: /Users/thuynguyen/Development/alohahealthnetwork/aloha-app/ios/Pods/Target Support Files/Pods-AlohaApp/Pods-AlohaApp.debug.xcconfig: unable to open file (in target "AlohaApp" in project "AlohaApp") (in target 'AlohaApp')

Build system information

error: /Users/thuynguyen/Development/alohahealthnetwork/aloha-app/ios/Pods/Target Support Files/Pods-AlohaApp/Pods-AlohaApp.debug.xcconfig: unable to open file (in target "AlohaApp" in project "AlohaApp") (in target 'AlohaApp')

Build system information

error: /Users/thuynguyen/Development/alohahealthnetwork/aloha-app/ios/Pods/Target Support Files/Pods-AlohaApp/Pods-AlohaApp.debug.xcconfig: unable to open file (in target "AlohaApp" in project "AlohaApp") (in target 'AlohaApp')

Build system information

warning: The iOS Simulator deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.1. (in target 'RNVectorIcons')

Build system information

warning: The iOS Simulator deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.1. (in target 'RCTRestart')

Build system information

warning: The iOS Simulator deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.1. (in target 'SplashScreen')

Build system information

warning: The iOS Simulator deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.1. (in target 'RCTVideo')

Build system information

warning: The iOS Simulator deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.1. (in target 'RNFlurryAnalytics')

Build system information

warning: The iOS Simulator deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.1. (in target 'RCTGoogleAnalyticsBridge')

Build system information

warning: The iOS Simulator deployment target is set to 7.0, but the range of supported deployment target versions for this platform is 8.0 to 12.1. (in target 'RNShopify')

Build system information

warning: Capabilities for AlohaApp may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the build settings editor. (in target 'AlohaApp')

** BUILD FAILED **

Installing build/Build/Products/Debug-iphonesimulator/AlohaApp.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The bundle identifier of the application could not be determined.
Ensure that the application's Info.plist contains a value for CFBundleIdentifier.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

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

@Definitely-Not-Vlad
Copy link
Contributor

I just noticed that you noted you're using the new build system.

Unfortunately, React Native currently doesn't support the new build system which is the default as of Xcode 10.

The new build system will be supported as of React Native 0.58.0. Our platform currently uses 0.56.0.

You can specify the Legacy build system by opening the AppName.xcworkspace with Xcode, then selecting the "File" dropdown menu from the top bar and opening "Workspace settings...".

There you can specify the build system being used. Selecting the legacy one should resolve the issue.

@maithuy
Copy link
Author

maithuy commented Feb 12, 2019

Thanks, setting Legacy Build system resolves this.

@maithuy maithuy closed this as completed Feb 12, 2019
@narenderv7
Copy link

@maithuy How did you set a legacy build system?

@alexanderturner
Copy link

File -> Project Settings @narenderv7

@lfoliveir4
Copy link

For versions above React 0.65, go to File> Workspace Settings and change the build to Legacy.

Go to the React Native IOS folder, reinstall the pods using the "pod install" command.

Clean up the project with the command: Shift + Command + K and build the project again.

@nanadjei
Copy link

This solution should help you out.

facebook/react-native#24450 (comment)

@khadafirp
Copy link

excuse me sir @lfoliveir4, I'm not find to change the build to legacy in workspace setting. please help. thank you

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

No branches or pull requests

7 participants