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

[v4] Xcode project generated by cmake cannot run on iOS simulator #20414

Closed
ijk19 opened this issue Dec 15, 2019 · 2 comments · Fixed by #20425
Closed

[v4] Xcode project generated by cmake cannot run on iOS simulator #20414

ijk19 opened this issue Dec 15, 2019 · 2 comments · Fixed by #20425
Assignees

Comments

@ijk19
Copy link

ijk19 commented Dec 15, 2019

  • cocos2d-x version: v4 (at commit 9b2a2db)
  • devices test on: Xcode 11.1 iPhone Simulator
  • developing environments
    • NDK version: N/A
    • Xcode version: 11.1
    • VS version: N/A
    • browser type and version: N/A
    • cmake (homebrew) version: 3.15.5

Steps to Reproduce:
1.

cocos new -l cpp test1
cd test1
mkdir ios-build
cd ios-build
cmake .. -GXcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos
open  test1.xcodeproj
  1. In Xcode , change build target to test1->iPhone 8 Simulator, cmd+r.
    Building will be successful but Xcode cannot run the product on simulator saying CFBundleExecutable in Info.plist is missing or invalid.

Extra info:
The problem seems to be caused by the recent commit 8214f27. It can be solved by git co ff333f7c0ad284def961d26be53454fadcddc6d3 (the preceding commit just before the said one) in cocos2d-x repository.

@minggo
Copy link
Contributor

minggo commented Dec 16, 2019

@PatriceJiang please take a look.

@banujj
Copy link

banujj commented Dec 24, 2019

Anybody looking for quick fix meanwhile:
Check your info.plist

<key>CFBundleDisplayName</key>
    <string></string>
    <key>CFBundleExecutable</key>
    <string></string>

Note that these key values are empty

Update them like below.

 <key>CFBundleDisplayName</key>
    <string>MyGame</string>
    <key>CFBundleExecutable</key>
    <string>MyGame</string>

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

Successfully merging a pull request may close this issue.

4 participants