Skip to content

Apple installation issues #20267

@slackmoehrle

Description

@slackmoehrle
  • cocos2d-x version: latest from v3 branch
  • devices test on: Mac OS 10.14
  • developing environments
    • Xcode version: 11.1

Steps to Reproduce:

  1. clone of v3 branch, git submodule update --init, git submodule update, ./download-deps.py

  2. cocos new MyTest -l cpp -d .

  3. cd MyTest

  4. cocos compile -p ios --> ERROR

** BUILD SUCCEEDED **

Build succeed.
Deploying mode: debug
Starting application.
CoreData: annotation:  Failed to load optimized model at path '/Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Frameworks/InstrumentsPackaging.framework/Versions/A/Resources/XRPackageModel.momd/XRPackageModel 9.0.omo'
Using simulator: iPhone 11 Pro Max (13.1)
running: 'xcrun simctl boot "6B53F7EA-A830-45B0-9211-31126BCD81B9"'

running: 'open `xcode-select -p`/Applications/Simulator.app'

running: 'xcrun simctl install "6B53F7EA-A830-45B0-9211-31126BCD81B9" "/Users/jason/MyTest/bin/debug/ios/MyTest-mobile.app"'

An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The application's Info.plist does not contain CFBundleShortVersionString.
Ensure your bundle contains a CFBundleShortVersionString.
Error running command, return code: 22.

Reason:

proj.ios_mac/ios/Info.plist contains CFBundleShortVersionString key but the string value is empty.

Screen Shot 2019-10-29 at 15 41 32

Solution:

put a value in key _CFBundleShortVersionString in _proj.ios_mac/ios/Info.plist

Compile successful.

Screen Shot 2019-10-29 at 15 48 39

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions