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

":CFBundleIdentifier", Does Not Exist #12737

Closed
alekseylovchikov opened this issue Mar 6, 2017 · 29 comments
Closed

":CFBundleIdentifier", Does Not Exist #12737

alekseylovchikov opened this issue Mar 6, 2017 · 29 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@alekseylovchikov
Copy link

We use GitHub Issues for bugs.

If you have a non-bug question, ask on Stack Overflow: http://stackoverflow.com/questions/tagged/react-native

If you have a feature request, post it on Product Pains: https://productpains.com/product/react-native/

--- Please use this template, and delete everything above this line before submitting your issue ---

Description

react-native run-ios
then:

Installing build/Build/Products/Debug-iphonesimulator/pizza.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/pizza.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Additional Information

Version: react-native 0.42.0
trouble in iOS, android works fine
OS: MacOS 10.12.3

@ghost
Copy link

ghost commented Mar 6, 2017

Experiencing the same issue on 0.42.0

@Kureev
Copy link
Contributor

Kureev commented Mar 6, 2017

Hi @alekseylovchikov!

Can you please check if your Info.plist is located at this path: build/Build/Products/Debug-iphonesimulator/pizza.app/Info.plist and have no syntax errors?

@ghost
Copy link

ghost commented Mar 6, 2017

@Kureev I just checked and my Info.plist doesn't have any errors at this path.. the Info.plist isn't in /.app though - It's just in /Debug-iphonesimulator/

@Kureev
Copy link
Contributor

Kureev commented Mar 6, 2017

I'm not the expert here, but I think it should be in the .app. Any ideas how it may happen?

Probably @grabbou can give you more insightful feedback on it

@mrbone
Copy link

mrbone commented Mar 8, 2017

@alekseylovchikov same issue, check your xcode version, if it's 7.2.1, you should update to xcode8.
For me it works.

@alekseylovchikov
Copy link
Author

@mrbone xcode version 8.2.1

@davidpelayo
Copy link

same issue happening here.

macOS 10.12.3
react-native: 0.42.0
react-native-cli: 2.0.1

@tjboudreaux
Copy link

I'm having the same issue

macOS 10.12.3
react-native: 0.42.0
react-native-cli: 2.0.1

@ytimocin
Copy link

Same issue:

macOS Sierra 10.12.3
react-native-cli: 2.0.1
react-native: 0.36.1

@Umity
Copy link

Umity commented Mar 20, 2017

same...
osx 10.12.3
xcode 8.2.1
react 042

@Kureev
Copy link
Contributor

Kureev commented Mar 20, 2017

What do you have in "Bundle Identifier" here
image
and here?
image

@Umity
Copy link

Umity commented Mar 20, 2017

com.myexample.myname
and
$(PRODUCT_BUNDLE_IDENTIFIER)

@danilvalov
Copy link

danilvalov commented Mar 24, 2017

I have the same problem when I try to run my app using react-native (react-native run-ios --configuration Stage). I use a custom configuration for my Xcode project: Stage (except basic Debug and Release) and after the error I have a directory /ios/build/Build/Products/Stage-iphonesimulator with one subdirectory MyApp.app, but this directory is empty.

The Debug and Release configurations work correctly.
And also I can correctly build my Stage configuration using Xcode.

@jjhesk
Copy link

jjhesk commented Apr 1, 2017

in my case I got this error from having the xcworkspace file saved in the folder ios and it stopped from using command react-native run-ios. I have this xcworkspace because it is required to have that from using fastlane to run another CI.

react-native run-ios
Scanning 804 folders for symlinks in /Volumes/RAMDISK/reactnative/gl/node_modules (107ms)
Found Xcode workspace onlyfastlane.xcworkspace
Launching iPhone 6 (iOS 10.2)...
Building using "xcodebuild -workspace onlyfastlane.xcworkspace -configuration Debug -scheme onlyfastlane -destination id=21C21FEE-A13E-43F3-9C61-E4EFFC98A46E -derivedDataPath build"
User defaults from command line:
    IDEDerivedDataPathOverride = /Volumes/RAMDISK/reactnative/gl/ios/build


xcodebuild: error: The workspace named "onlyfastlane" does not contain a scheme named "onlyfastlane". The "-list" option can be used to find the names of the schemes in the workspace.

Installing build/Build/Products/Debug-iphonesimulator/onlyfastlane.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

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

RN 0.42.3
XCode 8.2
Once I removed the workspace file and everything run as normal. Please fix that

@rathierry
Copy link

rathierry commented Apr 12, 2017

same issue happening here.

macOS Sierra: 10.12.3
react-native: 0.43.3
react-native-cli: 2.0.1

Please, help!!!!! :)

@Kureev
Copy link
Contributor

Kureev commented Apr 12, 2017

I was looking around for any solution and found this thread. Maybe #7308 (comment) can help you solving this issue.

I propose to keep all discussions about :CFBundleIdentifier errors in one thread. Therefore, closing this issue in favor of #7308

@Kureev Kureev closed this as completed Apr 12, 2017
@agnellvj
Copy link

I see the same problem as @alekseylovchikov. The error that is reported is that CpResource main.jsbundle failed to copy to the correct location. I have looked through every comment on issue #7308 and found nothing helpful since no one mentions that they had a problem with main.jsbundle. I tried running react-native run-ios --configuration Release but that fails too.

Building in Xcode also produces the same error.

Interestingly / annoyingly is that my coworker can build with no issues.

macOS Sierra: 10.12.3
react-native: 0.42.0
react-native-cli: 2.0.1

@agnellvj
Copy link

agnellvj commented May 12, 2017

So, I borrowed a laptop from a friend and I get the same error as above. Just to reiterate, it has nothing to do with :CFBundleIdentifier the error occurs before that but it causes the build error when it tries to read the Info.plist in the build directory but of course it doesn't exist.

@bz123
Copy link

bz123 commented May 22, 2017

react-native upgrade , get rid of your old ios files by letting it rewrite the pod files etc and you are golden.

@Umity
Copy link

Umity commented May 22, 2017 via email

@bz123
Copy link

bz123 commented May 22, 2017

@Umity react-native upgrade command will prompt you asking you if you want to change several files, just let it change them.

@Umity
Copy link

Umity commented May 22, 2017 via email

@alxvallejo
Copy link

@bz123 That is not wise advice. Any previous custom configuration settings in your XCode project will be wiped clean. Proceed with caution.

@MichelDiz
Copy link

MichelDiz commented Jul 3, 2017

"React-native upgrade" command you'll lose a series of configurations. Must redo all by hand.
For me I did

React-native init TestSome (clean install see? but same result)
Install Xcode (latest)
Install it again (same result)
Install Xcode 9 beta 2 (same result)
React-native run-android = OKAY (just to garantee)
react-native run-ios --configuration Release = Noooops
But has ** BUILD SUCCEEDED **


** BUILD SUCCEEDED **


Installing build/Build/Products/Release-iphonesimulator/teste.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

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

No positive result ;-; (crying and losing hair)

@RabbitJohn
Copy link

I have got the same problem, and solved this problem by checking the console log and found this issue may be raised by another issue. the log has some errors: there is something wrong with the third-party:boost_1_63_0, and reports file not found, according this #14404 finally solved this problem by replace the boost_1_63_0 with the one I downloaded

@nimishpatel19
Copy link

DO NOT use space in project path. It had solved my problem.

@alopezc
Copy link

alopezc commented Aug 2, 2017

same issue here, @nimishpatel19 is right, remove space in project path and all went ok

@payamrafiee
Copy link

@nimishpatel19 thanks man.... it solved my problem.

@hramos
Copy link
Contributor

hramos commented Aug 4, 2017

Duplicate of #14423

@hramos hramos marked this as a duplicate of #14423 Aug 4, 2017
@facebook facebook locked and limited conversation to collaborators Aug 4, 2017
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests