Problems building Xcode Project

1 favourites
  • 5 posts
From the Asset Store
Buildings - Isometric view - PNG transparent - multi styles, multi fonctions buildings
  • Hi,

    I'm seeing several issue when building an Xcode project. I've tested it with an empty project, but still getting the following issues:

    1. The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.0.99. - easily fixed by manually setting to 12.0

    2. Could not find included file 'Pods/Target Support Files/Pods-xcode test/Pods-xcode test.debug.xcconfig' in search paths - fixed by removing:

    #include "Pods/Target Support Files/Pods-xcode test/Pods-xcode test.debug.xcconfig"

    From pods-debug.xcode (but that file starts with: "#include "Pods/Target Support Files/Pods-xcode test/Pods-xcode test.debug.xcconfig"" so not sure how safe deleting that line is?)

    3. App icon isn't being used - instead it uses the default Cordova icon

    4. In the project I'm working on, I also get an error about Swift version not being set - it's easy enough to set it to 4.2 in Build Settings, but thought I'd report it too.

    Thanks!

  • Just an update to 3. above - if I export a new, empty project to Xcode, and view Assets.xcassets, it shows that it's using the default Cordova icons and not picking up the C3 icons that are present in a new project.

    It's fairly easy to fix - I just deleted all the icons and then uploaded a 1024x1024 icon for and set iOS = "All Sizes" in the dropdown.

  • Just to follow up on my progress. I've been testing on real devices using Xcode but decided to try the simulator and tried an iPhone 15 where I noticed the "Home indicator bar" so searched on how to hide it and came across this post:

    https://www.construct.net/en/forum/construct-3/how-do-i-8/include-cordova-plugin-172165

    Which lead to these instructions:

    https://www.construct.net/en/tutorials/building-mobile-apps-locally-21

    I got Cordova installed

    Then cordova prepare (had to install several dependencies to get this to work)

    cordova requirements showed no issues

    cordova build failed with "Value for SWIFT_VERSION cannot be empty"

    Figured out that I needed to open /platforms/ios/<project name>.xcworkspace, go to Build Settings and change "Swift Language Version" from "Unspecified" to "Swift 4.2" (similar to above post)

    cordova build succeeded so reopened the .xcworkspace file again and managed to test the app OK again.

    Then realised I'd not read that original post thoroughly and hadn't installed:

    github.com/chipbell4/cordova-plugin-hide-home-indicator

    (or updated config.xml to include a reference to it!)

    Once that was installed and I'd updated config.xml, cordova prepare and cordova requirements ran OK

    But cordova build failed with the same Swift version error plus another "'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 17.2.99" error. So back to the xcworkspace file in Xcode to fix the Swift version error again. Haven't needed to fix the other error yet - the project's building OK on the simulator.

    And the result? I think it's working - I'm using the mouse to simulate clicks and I think iOS shows the indicator bar when it detects mouse activity. I can also control my game with a keyboard in which case the bar isn't show - so I'm hoping that's the case when using a real device with touch.

    Maybe a "Hide home indicator" option in the build settings? (Godot has had this for a while).

    Also wondering whether the build process needs updating to address some of the other issues I've described in this thread?

  • Thanks for this very instructive topic !

    So you gave up xcode export to cordova export ?

    In tour second post, you write :

    I got Cordova installed

    Then cordova prepare (had to install several dependencies to get this to work)

    Could you detail the whole install process including the 'several dependancies' ?

    I'll in the process of making my own app in a few weeks and your progress are veray useful to me. thanks !

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks for this very instructive topic !

    So you gave up xcode export to cordova export ?

    In tour second post, you write :

    > I got Cordova installed

    >

    > Then cordova prepare (had to install several dependencies to get this to work)

    Could you detail the whole install process including the 'several dependancies' ?

    I'll in the process of making my own app in a few weeks and your progress are veray useful to me. thanks !

    Hi Laurent. Yes, I need to hide the home bar indicator and the only way to do this is to export to Cordova then use the Cordova plugin from the Github repo before completing the build (then importing into Xcode).

    When you run cordova prepare it warns which dependencies are missing and gives commands to install them - I can't remember exactly but write here if you get stuck and I'll try to help.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)