This article applies to those fellow developers who are using visual studio tools for apache Cordova with or without an ionic framework. I am going to explain the problem which I faced during development of an ionic app using MS visual studio and Mac OS. hope this will help to the community.
Problem: Earlier was running my Ionic app with Xcode 7.2 and IOS 9.2 using visual studio tools for apache Cordova. Its was working fine and automatically detect Provisional Profile for my app. But when I have to upgrade My Xcode from version 7.2 to Xcode 8 version and my iPhone ios 9.2 to ios 10, I am not able to build my app locally my build fails with the following error.
Error – Build failed with error Error code 65 for command: xcodebuild with args: -xcconfig,
1> —— Remote build log follows
Solution : After lots of research i found following steps which resolved problem for me.
Step 1: Open command prompt and run below command, Ionic platform rm ios
And now, ionic platform add https://github.com/apache/cordova-ios.git
Step 2: How to find your development team Id
For your Development Team Id click On Apple Developer portal.
Log in using your apple id will display screen.
Now, You have to just Click on Membership will display your Team id.
Step 3: And you need to create a build.JSON file to your project root that contains bellow text
Step 4: You’ve had to write a hook that you can add to your project. Save that file in your hooks folder, and reference it in your config.xml
Hooks folder Image
Config.xml setting for hooks reference.
<hook type=”before_compile” src=”hooks/xcode8.js” />
If you like this tiny help for fixing your Code Sign Error 65 iOS10 using xcode8. You may share on your social media also for supporting others. Many Thanks