SDK 10, Mac OS xcode project build Issue

Hello All,
I have an issue in xcode project build.
I m using SDK 10, Mac OS 10.14.6, Xcode 10.2
Here exactly what happens in the process, the build for iOS from the terminal is successful. then I have executed the comman: ./sdk build --scheme debug --platform ios. After that, It shows me a success result but when I open Xcode and run my Nomad.xcodeproj, It gives build failed.
Anyone knows how can I fix this issue.

  • Hi Aniruddh
    Please update your XCode to the latest version
    This should fix your issue

    Best regards, Eugene

  • Hi Eugene Bychkov,

    Here is some detail of my issue.

    I am using the SDK 10 with the Mac OS(Mojave) 10.14.6 and Xcode 11 (latest).

    I have followed below to create the built.

    Step 1: ./sdk build --scheme debug --platform ios --init-native

    ios build is OK

    Finished 'build-native-ios' after 7.68 s
    Finished 'build-ios' after 18 s
    Finished 'build' after 18 s
    SUCCESS

    then I tried to open the Xcode

    Step 2: Open Xcode Version 11.0 (11A420a)

    It gives me below errors:
    1) 'Cordova/CDVPlugin.h' file not found (file path: Nomad/Plugins/Storageinfo.h)
    I have solved it by file->projectsettings->build system->legacy build system
    2) 'Cordova/CDVViewController.h' file not found
    For this issue, I have added Cordova dependencies from the build phase
    So it gives another error,

    3) info.plist is not found
    So I have added manually, Cordova/info.plist
    Then it gives another error

    4) linker command failed with exit code 1 (use -v to see invocation)
    -lcordova not found

    And then again errors

    After built the file and folders have been generated. You can see the structure in the attached screenshots.

    So, I want to confirm that Does this process also need to generate nomade.xcodeworkspace right?

  •  {SugarClub Administrator Edit: We're sorry, but this image is no longer available}  
     {SugarClub Administrator Edit: We're sorry, but this image is no longer available}  
     {SugarClub Administrator Edit: We're sorry, but this image is no longer available}  
  • Hi Eugene Bychkov  and Trevor Bloking 

    Can you guys kindly help us on this challenge?

    Thank you in advance!

    André Lopes
    Lampada Global
    Skype: andre.lampada
  • Hi guys
    I've just tried to reproduce your use case
    The only difference was that I was using newer SDK, which is 11 at this moment. You can get it from usual download page as well

    I've genereted new app with sample code

    Then inside the app I've run 

    ./sdk init-native -p ios -s debug

    ./sdk build -p ios -s debug

    (these 2 commands should be identical to running ./sdk build -p ios -s debug --init-native)


    And build went just fine for me
    Could you try my exact use case on your machine?
    Also did you do any modifications/Xcode project before running the build?

  • Hi Eugene Bychkov

    Still same issue here after updating all stack (SDK, Xcode etc).

    As Aniruddh Vaghasia previously asked, nomade.xcodeworkspace not generated, only the Nomad.xcodeproj.

    Is there any trick to follow in order to make it working?

    Would you like to ask any checklist so we can make sure we didn't miss anything?

    Any help is appreciated!

    André Lopes
    Lampada Global
    Skype: andre.lampada
  • Hello Guys 
    After updating SDK 11, facing the same errors for Xcode.

    @ André Lopes, only the Nomad.xcodeproj is there and the workspace is not generated.

    @ Eugene Bychkov As I mentioned earlier, SDK builds successful.
    But we have an issue in xcode project run. all these errors comes from the Xcode side.

    And we don’t do any modification in Xcode before running the build. Can you guys tell me what exactly missing to run the Xcode project successfully?
    Thank you.

  • Hi guys
    I think you have "Nomad AppStore" selected as build scheme in your iOS project

    Currently Nomad can't be built with this scheme

    Instead, please select Nomad Debug for debug or Nomad Release for release as scheme and project should build just fine

    I'll attach screenshot

     {SugarClub Administrator Edit: We're sorry, but this image is no longer available}  

    I think we will remove Nomad AppStore in the next SDK release to avoid further confusion

  • Thank you so much Eugene Bychkov

    Yes exactly, this was the issue.
    I have change Nomad AppStore to Nomad Debug in build scheme.
    and built successful.
    Thank you again.