How to build cocos2dx for iOS simulator with latest Xcode?

How to build cocos2dx for iOS simulator with latest Xcode?

Currently CI builds for iOS are red/failed


@slackmoehrle could you help?

Kind regards,

I’ll need to ask @zhangxm

@R101 maybe you can help?

I haven’t tried to build Cocos2d-x v4 for iOS (although I do use a fork of v4 that works with iOS). The only thing I can see in my root project CMakeLists.txt file that may help is this:

set_target_properties(${APP_NAME} PROPERTIES
    XCODE_ATTRIBUTE_ARCHS[sdk=iphonesimulator*] x86_64
    XCODE_ATTRIBUTE_VALID_ARCHS[sdk=iphonesimulator*] x86_64

Check this file out to see if there are any settings that are missing from Cocos2d-x v4:

@R101 thank you for your answer. It fails on CompileStoryboard.
Any ideas on how to fix it?

Below command line and error:

CompileStoryboard /Users/runner/work/cocos2d-x/cocos2d-x/tests/cpp-tests/proj.ios/LaunchScreen.storyboard (in target 'cpp-tests' from project 'Cocos2d-x')
    cd /Users/runner/work/cocos2d-x/cocos2d-x
    /Applications/ --errors --warnings --notices --module cpp_tests -DCMAKE_SKIP_PRECOMPILE_HEADERS --output-partial-info-plist /Users/runner/work/cocos2d-x/cocos2d-x/b/engine/tests/cpp-tests/ --auto-activate-custom-fonts --target-device iphone --minimum-deployment-target 9.0 --output-format human-readable-text --compilation-directory /Users/runner/work/cocos2d-x/cocos2d-x/b/engine/tests/cpp-tests/ /Users/runner/work/cocos2d-x/cocos2d-x/tests/cpp-tests/proj.ios/LaunchScreen.storyboard
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
			<string>Unable to rename classes, class name parsing failed.</string>
			<string>Not enough arguments provided; where is the input document to operate on?</string>
Command CompileStoryboard failed with a nonzero exit code

No idea about that error, but as I mentioned in my previous post, the iOS builds work in that Cocos2d-x fork I linked, so perhaps comparing the two may shed some light on the issue.

@slackmoehrle any progress? Did you have a chance to ask engineer team?

I will check on the status, I know the team has been really busy with upcoming releases.

I think this is not fit to the current topic, but I want to know about this problem because I really need to implement this asap.

I am gonna make a simple game in React Native and want to use Cocos2d-x for animations and some logic.
In a word, is there any way to use Cocos2d-x in React Native?

Hope to help me.