Cordova iOS - Build App Error 65 - ios

I developed an App on a Windows Machine (For Android).
I also want the App for iOS. So I installed Xcode, node.js and cordova.
There are no errors, when I run my App on a Emulator.
When I run the App on Device with the command cordova run ios --device, I get the following Errors:
Check dependencies
Signing for "HelloCordova" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.2'
** ARCHIVE FAILED **
The following build commands failed:
Check dependencies
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -
xcconfig,/Users/milkogrieger/Woow2/platforms/ios/cordova/build-
debug.xcconfig,- workspace,HelloCordova.xcworkspace,-scheme,HelloCordova,-
configuration,Debug,-
destination,generic/platform=iOS,-
archivePath,HelloCordova.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/milkogri
eger/Woow2/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/milkogrieger/Woow2/platforms/ios/build/sharedpch
I found the following Solutions and tried them:
remove all plugins
add plugins
remove platforms
add platforms
But the error is still there.
I hope someone can help me
Thanks

You need to specify your development team as the message indicates. You can do this easily by configuring build.json, as described in the docs and further clarified here.

Related

is 'APP' capability REQUIRED for WDA installation?

I'm trying to run an appium script with a real iOS device. I am currently getting this error:
Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: "xcodebuild failed with code 65". Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
Apparently this error is associated with security issues at noted here, but I've already completed that step and it's still not working. So then I thought maybe this is b/c my appium script does NOT set the 'APP' capability. 'APP' capability is of course is the full path to the application that is under test. The appium documentation here obviously doesn't indicate which settings are required if any. My question is will the Webdriver Agent not get installed on the device if the 'APP' capability is not set and thus throwing the error above?
You can right-click on the appium app (which is in ur application folder) you are using > show package contents > search for .xcodeproj > you will see a couple of projects including web driver. Now open web driver agent Xcode project and use an apple developer account to code sign it.
If you have already done this, then please update your question with appium capabilities that you have set.

How to build and deploy an ios api file in real device using MAC

i am new to mac, so for i have installed xcode and successfully added the platform for ios.
When i give adb devices i am not able to detect my device name for iphone but when i connect android and give adb devices i am getting my device .
when i give ionic build ios i'm getting the following errors. i don't know how to enable the developer option in iphone
=== BUILD TARGET myFirst OF PROJECT myFirst WITH CONFIGURATION Debug ===
Check dependencies
Signing for "myFirst" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.3'
** ARCHIVE FAILED **
The following build commands failed:
Check dependencies
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/subbarao/Desktop/myFirst/platforms/ios/cordova/build-debug.xcconfig,-workspace,myFirst.xcworkspace,-scheme,myFirst,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,myFirst.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/subbarao/Desktop/myFirst/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/subbarao/Desktop/myFirst/platforms/ios/build/sharedpch
You need a development provisioning profile on your build machine. Apps can run on the simulator without a profile, but they are required to run on an actual device.
If you open the project in Xcode, it may automatically set up provisioning for you. Otherwise you will have to create go to the iOS Dev Center and create a profile.
cordova run with ios error .. Error code 65 for command: xcodebuild with args:
Same question here by this guy
Try to sign in as ios dev account in Xcode
or try
ionic platform remove ios
ionic platform add ios
i was getting the same error but i tried the above command and its working now
thanks

How to test NativeScript app on real iPhone

I am new to NativeScript and I just made my first app. My app requires testing on a real iPhone; however, I don't know how to test it on a real iPhone and not the simulator. I tried looking at the appbuilder docs but I can't figure out how to just test it on an iPhone. I tried to use tns run ios while I had an iPhone plugged in but I get this:
=== BUILD TARGET LOKale OF PROJECT LOKale WITH CONFIGURATION Debug ===
Check dependencies
Signing for "LOKale" requires a development team. Select a development team in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.0'
Code signing is required for product type 'Application' in SDK 'iOS 10.0'
Code signing is required for product type 'Application' in SDK 'iOS 10.0'
** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
Command xcodebuild failed with exit code 65
# run ios
I have no idea why I can't just run it on an iPhone. Can anyone tell me how to test it on a real iPhone or what I am doing wrong? Thanks in advance!
As shown in the link provided in the comments, to test on real device you will need to provide development team id.
Here are the steps to do it in NativeScript application:
Open app/App_Resources/iOS/build.xcconfig
Uncomment (or add) DEVELOPMENT_TEAM = YOUR_TEAM_ID;
Place your team id and rebuild your application
Update: You can also use
tns run ios --provision
to see the available provision profiles and build the app with
tns run ios --provision <my-provision-profile>

NativeScript CLI fail when running "tns run ios"

I'm practicing with this new programming framework called NativeScript, which allows creating native apps using JS. However, when I started working on the Hello World tutorial, I got this error:
https://gist.github.com/longpham91/d603c8fe7f6c6b06e86f
The error occurred when I tried running command "tns run ios" on Terminal, which basically allowed NativeScript to run HelloWorld app on my phone.
I also looked at the error log, and it seemed that the error might have something to do with my Xcode device settings, as explained here:
Check dependencies Code Sign error: No code signing identities found:
No valid signing identities (i.e. certificate and private key pair)
matching the team ID “(null)” were found. CodeSign error: code signing
is required for product type 'Application' in SDK 'iOS 8.4'
I'm not sure what this means, though.
I was able to figure this out after posting a thread on {N} Google group. Here's how:
Generate the Certificate and Provisioning Profile, following this tutorial: http://seventhsoulmountain.blogspot.no/2013/09/ios-code-sign-in-complete-walkthrough.html
Go into the iOS section of your {N} project (under platforms/ios), and run the .xcodeproject file. You can also make a copy of this folder, to be sure that you don't accidentally change something in the source code.
When the Xcode project is opened, go to Xcode > Preferences > Accounts, and click on View Details.
Add the Provisioning Profile by clicking the + button.
That's all. Took me a while to figure this out since I'm not all that familiar with Xcode, but your project should run on your iOS device now.
Not sure, but I think the PATH variable "android / tools and android / platform-tools /" do not exist. You can use the android command in your shell?

Do I need iPhone Developer license to run cordova/phonegap in ios simulator?

I don't have an iPhone developer license.
It was working fine when I execute "cordova run ios"
Then I created a new project using "cordova create test_app"
When I run "cordova run ios", it throws this error.
Then the project that used to work is also failing with the same error?
Check dependencies
Code Sign error: No matching codesigning identity found: No codesigning identities (i.e. certificate and private key pairs) matching “iPhone Developer” were found.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.1'
** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
Error: /Users/Anthony/dev/test_app/platforms/ios/cordova/run: Command failed with exit code 65
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/src/superspawn.js:126:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:753:16)
at Process.ChildProcess._handle.onexit (child_process.js:820:5)
Be sure to have no device connected to the Mac else phonegap will try to build and deploy your app on it. I had the issue with my iPhone plugged in.
Also in Xcode be sure that you build the debug release with command line tools (in the info tab of project properties)
I would suggest you to go over the solution in this thread - which tells you how to disabling Code Signing. Anyway, no harm in checking this -
Verify that the Code Signing section's Code Signing Identity within the project settings is set to None -
Search for Code Signing in Target of your app, and check if Don't Code Sign is chosen.
Ey
One thing is to play with XCode and Cordova to make a new project and learn how phonegap or another wrapper works and a different thing is to publish an application. Following the apple specifications, you can always create a new application and test it in the simulator. The benefits of becoming an apple developer are you can try your applications in a physical device but it doesnt mean you cant create an application and try it in the simulator.
If you have tried to run the application in a real device, XCode will complain about the required credentials because you are not an apple developer and you dont have your certificate installed in the keychain so the application cant be signed for deployment on a real device.
If you want to test the application in a device "Yes" you need to become an apple developer and pay the fee, if not, dont worry you can run as many applications as you want in the simulator.
Check the settings of your project as well to see if there is something wrong.

Resources