Saturday, November 12, 2022
HomeGame DevelopmentCannot load iOS app on telephone, invalid Information.plist - cocos2d-x

Cannot load iOS app on telephone, invalid Information.plist – cocos2d-x


I used CMake to generate a Makefile and construct for iOS utilizing that.

This creates a .app file, but when I attempt to load it onto my telephone I get this error message:

Even when I give a worth to CFBundleExecutable within the plist file, it nonetheless exhibits the identical error. I may also confirm that the plist has this worth by proper clicking the .app file and clicking “Present Bundle Contents”. Contained in the Contents folder is a plist file that has the proper worth:

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

I’m on macOS Monterey model 12.6, with cocos2d-x model 4. My telephone is on iOS 16.1.1. I’m utilizing Xcode model 14.1.

What’s going improper right here?


I discovered a repair. As a substitute of simply utilizing

cmake ..

I used

cmake .. -GXcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos

Then I constructed the app from the generated Xcode challenge. I’m capable of get my sport on iOS with no issues now.

I can’t put up hyperlinks to this discussion board, however I discovered this resolution within the “CMake Information” web page within the v4 documentation.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments