Build failed with error code 65 (Emulate ios with custom plugin)

4 posts, 0 answers
  1. Abraham
    Abraham avatar
    2 posts
    Member since:
    Sep 2017

    Posted 13 Sep Link to this post

    I am trying to emulate an app with custom plugin (this plugin is working properly in other app with the latest ionic version), but with appbuilder we are getting confusing and non-descriptive message: Build failed with error code 65 after uploading to telerik servers.

    LOG 

    ---------------------------------------------

    $ appbuilder emulate ios
    Building project for platform 'iOS', project configuration 'debug', build configuration 'Debug'
    Uploading.......................................................................................................................................................................................
    Using mobile provision '[No provision]'
    Using certificate '[No certificate]'
    Building project TestSitumAlberto/TestSitumAlberto (Private_Build_Folder)
    Building.......................
    Build log written to '/Users/alberto.doval/Proyectos/cocodin/git/situm/TestSitumAlberto/.ab/build.log'
    Build errors: [ '** BUILD FAILED **\n\n\nThe following build commands failed:\n\tLd DerivedData/Build/Intermediates/Cordova640.build/Debug-iphonesimulator/Cordova640.build/Objects-normal/i386/Cordova640 normal i386\n\tLd DerivedData/Build/Intermediates/Cordova640.build/Debug-iphonesimulator/Cordova640.build/Objects-normal/x86_64/Cordova640 normal x86_64\n(2 failures)',
      '\'Build failed with error code 65\'',
      '\'Build failed with error code 65\'' ]
    Build failed. For more information read the build log.

    -------------------------------------------

    Launching command with --log trace not provided us additional information about the problem.

    We also tried with an empty app only with this plugin and we can reproduce it. Here, the steps:

    $ appbuilder create hybrid TestSitum
    --appid was not specified. Defaulting to com.telerik.TestSitum
    Project 'TestSitum' has been successfully created in '/Users/alberto/Proyectos/cocodin/git/situm/TestSitum'.

    $ cd TestSitum

    $ appbuilder plugin fetch https://github.com/cocodinTech/situm-cordova-plugin.git
    Successfully fetched plugin Situm Cordova plugin
    $ appbuilder emulate ios
    Building project for platform 'iOS', project configuration 'debug', build configuration 'Debug'
    Uploading......................................................................................

    And fails......

     

     

    Could anyone provide us some additional info about the possible error with this plugin? Thanks in advance.

     

  2. Tsvetan
    Admin
    Tsvetan avatar
    8 posts

    Posted 15 Sep Link to this post

    Hello Abraham,

    You might be able to obtain a more extensive log from the build.log file located in the .ab folder of your app.
    This will still contain filtered log but it might give you more extensive information on the issue that you are facing.

    Additionally, since you are building for simulator you should verify that your custom framework is correctly built for x86_64 and i386 architectures. Also, you should check if you experience the same issue when you build and deploy on a device? If so - please verify that your framework is build for arm64 and armv7. architectures.

    I hope this is of any help.

    Regards,
    Tsvetan
    Progress Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
  3. Abraham
    Abraham avatar
    2 posts
    Member since:
    Sep 2017

    Posted 18 Sep in reply to Tsvetan Link to this post

    Hi Tsvetan,

    We have checked all the files on the .<user> (.ab) folder. The information is still a summary of what Xcode provides (exactly the same as posted on the previous post).

    We have built the application both for the emulator and for a real device. Still the problem persist:

    Build errors: [ '[xcode-build] ld: symbol(s) not found for architecture armv7\n[xcode-build] clang: error: linker command failed with exit code 1 (use -v to see invocation)\n[xcode-build] ld: symbol(s) not found for architecture arm64\n[xcode-build] clang: error: linker command failed with exit code 1 (use -v to see invocation)',
      '** ARCHIVE FAILED **\n\n\nThe following build commands failed:\n\tLd DerivedData/Build/Intermediates/ArchiveIntermediates/Cordova640/IntermediateBuildFilesPath/Cordova640.build/Debug-iphoneos/Cordova640.build/Objects-normal/armv7/Cordova640 normal armv7\n\tLd DerivedData/Build/Intermediates/ArchiveIntermediates/Cordova640/IntermediateBuildFilesPath/Cordova640.build/Debug-iphoneos/Cordova640.build/Objects-normal/arm64/Cordova640 normal arm64\n(2 failures)',
      '\'Build failed with error code 65\'',
      '\'Build failed with error code 65\'' ]
    Multiple errors were thrown:

    Build failed. For more information read the build log.

     

    The steps to reproduce the error are the following:

    0) I have added a certificate and a provisioning profile to the account.
    1) appbuilder create hybrid Test
    2) cd Test
    3) appbuilder plugin fetch https://github.com/cocodinTech/situm-cordova-plugin.git
    4) Copy the folder Headers and the file SitumSDK from plugins/situm-cordova-plugin/src/ios/Frameworks/SitumSDK.framework/Versions/A to the path plugins/situm-cordova-plugin/src/ios/Frameworks/SitumSDK.framework/
    5) appbuilder emulate ios

     

    Note that: The Situm plugin (the one on the link https://github.com/cocodinTech/situm-cordova-plugin.git) has been successfully used on an Ionic application both on a simulator and a real device (can be found here: https://github.com/cocodinTech/situm-cordova-getting-started). We have double check that all architectures are available at the library.

    Is there any way I can see which symbols are missing? I regularly compile Xcode projects and when this happens the log is richer.
    Additionally, this plugin depends on dependencies that are on Cocoapods. Is Telerik build process taking that into account? Should I ask for a plugin with the dependencies included?

    Could you make that work?

    Any advice or additional capabilities to debug the problem would be helpful!

     

  4. Tsvetan
    Admin
    Tsvetan avatar
    8 posts

    Posted 20 Sep Link to this post

    Hi Abraham,

    I suggest we continue this discussion in the separate support ticket that you have opened. I have addressed this issue there and also provided some additional information regarding the missing symbols. 

    Additionally, keeping the communication in one place will ensure a more consistent and easy to follow conversation.

    Regards,
    Tsvetan
    Progress Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
Back to Top