Building Error on the IOS distribution using ionic in Windows - ios

I am very new in ionic iOS building. I got struck while not able to build the ios production .ipa file in ionic.io.
By referring the site
My Working Platforms:
Windows 8.1,
ionic.io,
Commands using CLI for running the app in browser and building.
For IOS Development,
I can able to create the p12 and mobile provisioning certificates in apple developer portal.
I can able to upload those files in the settings tab in the profile tag in ionic.io
I got my success build .ipa and ran into my iOS devices that working fine.
For IOS Production,
I can able to create the p12 and mobile provisioning certificates in apple developer portal.
I can able to upload those files in the settings tab in the profile tag in ionic.io
The build was failed in ionic.io. When i click the output link displaying the following error,
=== BUILD TARGET XXXX OF PROJECT XXXX WITH CONFIGURATION Debug ===
Check dependencies Code Sign error: No code signing identities found:
No valid signing identities (i.e. certificate and private key pair) were found.
** BUILD FAILED **
Can anyone help to resolve it

Related

I think I have done necessary code signing work but build still failing in Ionic

Building an Ionic app to try and test on my iPhone. I downloaded XCode last night and went in and created a profile with my Apple ID, as well as changing the bundle identified in the "General" and "Signing & Capabilities" tab. However when I run "ionic cordova build ios --prod" I get the error:
error: No profiles for 'io.ionic.starter' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'io.ionic.starter'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'MyApp' from project 'MyApp')
** ARCHIVE FAILED **
xcodebuild: Command failed with exit code 65
[ERROR] An error occurred while running subprocess cordova.
cordova build ios exited with exit code 65.
Re-running this command with the --verbose flag may provide more information.
It seems to me as though I have done the necessary code signing procedures that I read from Ionic's website, so I am unsure why it still isn't working.
To run the app in your iPhone there are several steps, check these:
You have created your app ID in the website.
You have created your provisioning profile in the website, and downloaded to your computer and added to your Mac (web -> download profile -> double-click)
You have created a development certificate (search how to create a certificate using a Certificate Signing Request generated in your Mac ) and then downloaded that certificate and added to your Mac.
There are two certificates. Distribution certificate is used to publish the app, but development certificate is used simply to run the project in your iPhone, you need that.
But honestly, it's all much easier if you use XCode instead of the console. In the console run the command without --prod, to apply ionic changes to the iOS project. Then if you want to run the app, it's easier if you open XCode and just click play.
With XCode there's the option "Automatically manage signing" that will handle most of this for you automatically. You just have to login to your account using XCode (it will prompt you) and let it do it for you.

No matching provisioning profiles found - NativeScript iOS deploy

I want to publish an update of my NativeScript app into AppStore. Until yesterday the following steps worked:
move into app directory (from Terminal)
execute tns publish ios
enter valid e-mail & password combination
Now I need to do another update, but I keep getting the following error:
=== BUILD TARGET HandyApp OF PROJECT HandyApp WITH CONFIGURATION Release ===
Check dependencies
Code Sign error: No matching provisioning profiles found: No provisioning profiles matching an applicable signing identity were found.
** ARCHIVE FAILED **
The following build commands failed:
Check dependencies
(1 failure)
Command xcodebuild failed with exit code 65
# publish ios
I am working under Xcode 7.3. I checked my iPhone Developer certificate in Xcode and in my keychain, it is active and not expired. The Provisioning Profile is shown in Xcode. I ensured to use the certificate that is saved in apple.developer.com (by downloading it and replacing the old one in that directory).
I got:
my .mobileprovision
my .cer
my .p12
everything in the same directory.
Still there seems something not to be matching. I just can't figure out what might be running wrong. Does anyone know what else I could try to get it working?

"No valid iOS code signing keys found in keychain"

I want to test an iOS application using Xamarin Test Recorder using iOS simulator. To do that I want to publish the project. When trying to publish it for archive, I got this error:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: Error: No valid iOS code signing keys found in keychain. You need to request a codesigning certificate from https://developer.apple.com. (MobileApp1.iOS)
Do we need a certificate to publish the project?
When I drag and drop the .app to simulator it doesn't get installed. When I tried to install debug version it gives below error. Failed to chmod /Users/../Library/Developer/CoreSimulator/Devices/8A0508B3-0‌​2E8-4601-A239-B6712F‌​67FF4D/data/Library/‌​Caches/com.apple.con‌​tainermanagerd/Bundl‌​e/Application/1B8A7B‌​17-D9D0-44A6-8584-65‌​7FF1AB5815/MobileApp‌​1.app/MobileApp1 : No such file or directory" Release app also not get installed(No error or warning). Note that this is a xamarin project.What shall I do now?
First of all you do not need to sign/publish your app to use it with Test Recorder.
You can start recording tests from .app located on bin/iPhoneSimulator/Debug/ folder.
The “No valid iOS code signing keys found in keychain” happens when there are no provisioning profiles on your machine. The easiest fix is to create a new app from XCode and deploy it on the device, XCode will automatically downloads the required profiles and certificates

Provisioning profile not getting set while building Xcode project using Jenkins

I am connecting to gitlab to pull source code and build the app through Jenkins. At build time, i am changing the bundle ID, certificate and provisioning profile for the App. But for some reason, the provisioning profile is not getting set while the former two works perfectly. I have added the profiles in KISS plugin and also provided the path to the profile in the Xcode plugin.
I have configured as below
I am getting the following error while building the App
App requires a provisioning profile. Select a provisioning profile for the "Release" build configuration in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.0'
Attaching the console screenshot

Publish Apple App Store in Visual Studio Apache Cordova project

I have a Visual Studio Apache Cordova project and successfully published on Android Google Play. However, I have been struggling to find out how to publish it to "Apple App Store".
"remotebuild" to Mac system and successfully running on debugging deivce (iPhone).
But not able to deploy with release mode of "Remote Device" (Build is successful)
Requesting deploy on remote iOS device for buildNumber 2765 on server https://remote-address:3000/cordova...
2>Failed to deploy iOS remote for build C:\PathToProject\bld\ios\Release\buildInfo.json to https://remote-address:3000/cordova :
2>Http 404: Installation failed: Check your provisioning profile
2>
2>Failed to deploy iOS remote for build C:\PathToProject\bld\ios\Release\buildInfo.json to https://remote-address:3000/cordova :
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
Which I have already downloaded the Provisioning / Certificate for both Development and Distribution and configured to XCode --> Preference --> Accounts --> Apple ID and Signining Identities.
I tried to verify the .ipa file generated by "remotebuild" using command line as below
codesign -v name.ipa
Saying
code object is not signed at all
I also tried to code sign manually (How to manually re-sign an IPA) but still saying that "code object is not signed at all"
"PhoneGap Build" also did not work
My questions are
Is there any way to configure the provisioning and certificate for iOS in Visual Studio Apache Cordova project?
Do I have to convert this Visual Studio Apache Cordova project to PhoneGap Project and load it on XCode and build with code sign?
Please help me to find a way to publish it on Apple App Store.
You follow the same steps you would for any other app you publish to iTunes app store. You need to open the Xcode project file created by Cordova in Xcode. You set the correct provisioning profile in Xcode then perform an archive (note the current target needs to be an actual device, not the simulator).
After the archive is created you will be given the option to validate it. Once it is validated you will be given the option to upload to it iTunes connect. Note you need to setup everything in iTunes Connect before doing this. You need to create your app id, any certificates, etc...

Resources