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.

Parents Reply Children
  • 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?

  • 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?