This is a migrated thread and some comments may be shown as answers.

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

3 Answers 340 Views
Command-Line Interface
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Abraham
Top achievements
Rank 1
Abraham asked on 13 Sep 2017, 06:33 AM

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.

 

3 Answers, 1 is accepted

Sort by
0
Tsvetan
Telerik team
answered on 15 Sep 2017, 02:26 PM
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.

 
0
Abraham
Top achievements
Rank 1
answered on 18 Sep 2017, 09:39 AM

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!

 

0
Tsvetan
Telerik team
answered on 20 Sep 2017, 03:33 PM
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.

 
Tags
Command-Line Interface
Asked by
Abraham
Top achievements
Rank 1
Answers by
Tsvetan
Telerik team
Abraham
Top achievements
Rank 1
Share this question
or