How can i use build ipa with cordova cli? - ios

Now i have someone's .p12 certificate and .mobileprovision and i have a cordova ios
project, so i want use cordova cli: cordova build ios --device --release to build signed ipa, what can i do?
when i try cordova build ios --device --release --buildConfig it show :
No iOS profile matching 'TeamID/UUID' found: Xcode couldn't find a profile matching 'TeamID/UUID'. Install the profile (by dragging and dropping it onto Xcode's dock item) or select a different one in the General tab of the target editor
i installed the profile with double click it already and load the .p12 to keychain too

I found that when i use cordova with version 5.4.1 and xode 7.0 it works.

Related

Provisioning profile "iOS Team Provisioning Profile: doesn't include the currently selected device" Flutter - MacOS

I'm able to build the macOS app from Xcode and run successfully, but when I'm trying to run it from Android Studio it's giving me the following error:
Provisioning profile "mac Team Provisioning Profile: doesn't include the currently selected device"
If I go to my apple developer account I can see my device UUID there as well.
If you're on Mac M1, your device will have two UUIDs: one when Xcode / xcodebuild is running natively, the other when running under Rosetta.
To register your device ID under Rosetta:
Applications folder > Xcode > right-click > Get Info > check "Open using Rosetta"
Open app in Xcode
Runner > Runner > Signing & Capabilities > ensure "Automatically manage signing" is checked
Xcode will give you an error about the device ID not being in the provisioning profile > click the fix button
Repeat steps 3. & 4. for any extensions you might have
Xcode will add the device ID to your profile. You can now uncheck "Open using Rosetta" to have Xcode running natively again.
See also this github issue.
You can try running the project via xcode first then running it via flutter SDK. This solved the mentioned issue for me.
That has been solved by:
Deleting the provisioning profiles from the following path:
~/Library/MobileDevice/Provisioning/Profiles/
Flutter clean
Run again
EDIT
You might need to open the project from Xcode and build it from there, and don't forget the pod install command
Open your project from Xcode
Select the device that experienced the issue from the devices list.
check this
Product > Clean Build Folder
Product > Build
Then Xcode will then ask you to register the device to your developer account. Add it and run your project as normal from Flutter.
Worked for me :
Delete macos folder inside your flutter project , and then run this command :
flutter create .
it creates a new macos folder for you and you can run your project now

iOS - Xcode Automatically Manage Signing Not Work With Ionic 4 Cordova Project

I have created a iOS app using ionic 4 with cordova and I have used following command to build iOS platform.
ionic cordova platform add ios#4.5.1
ionic cordova build ios --prod --release
After that I have open the xcodeworkspace file using Xcode and tested using simulator as well.
But when I trying to upload it to App Store I can't do it because this automatically manage signing doesn't work.
Here is the error Xcode shows.
Xcode Version : 12.1
I have try following solutions but didn't work them.
Deleting provisioning profiles in ~/Library/MobileDevice/
Restart the Xcode
Adding and removing push notification capabilities as described here iOS - automatic signing is unable to resolve
All the solutions in here as well Xcode - error
The file path is APP > Platforms > ios > Cordova > build-release.xconfig
And in the file, iPhone Distribution is explicitly set for CODE_SIGN_IDENTITY.
Change:
CODE_SIGN_IDENTITY = iPhone Distribution
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Distribution
To:
CODE_SIGN_IDENTITY = iPhone Developer
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Developer
After all these solution it shows above error.
EDIT
I have a doubt with this signing certificate also. Is this normal with individual developer program ?
EDIT 2
Here I have noticed identifiers are automatically created using Xcode. But there is no certificates or profiles. Why is that?
EDIT 3
Manual signing works
After suggestion by
#MostafaHarb
I have add certificates and profiles manually add install them. After that only it allows me to use manual signing.

There are no accounts registered with Xcode reported during archive even though there is

Hi I am trying to build an iOS app with Cordova.
The project successfully builds but when I try to release in order to upload to TestFlight with:
sudo cordova build ios --release --device --automaticProvisioning --packageType="app-store"
Then I get the error
error: There are no accounts registered with Xcode. Add your developer account to Xcode (in target '' from project '')
error: No profiles for 'com.' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.'. (in target '' from project '')
But I do have an account and the appropriate certificates and profiles.
Xcode account
Debug profile
Build settings - Signing
Release Profile
I added cocoa pods that were missing. I don't know how the build was successful from Cordova cli???
Second one of my plugins in particular admit-plus was not in the latest version in the config.xml
Fixing those two and everything worked!!!!!
This is the proper "work around" to push to test flight.
1- cordova prepare ios
2- open xcode project, uncheck automatic signing (both dev & release)
3- check back automatic signing
4- select your team
5- cordova build ios
6- build your app from xcode and test on device/simulator
7- from xcode: product -> archive
8- upload your build to appstoreconnect via xcode
9- go to appstoreconnect, then from there put it in test flight

Build iOS app from Cordova Command Line

When building and uploading a iOS app our approach is like this.
Create the mobile app and put the Cordova configuration
run cordova platform add ios then basically load the generated folder / project into XCode
Configure and select the Signing on XCode
Use XCode to build the iOS app and upload the Archive to TestFlight
In what way all these can be done with the Cordova command-line?

Cannot deploy to device using Ionic cli (but succeed with Xcode)

I followed all the steps mentioned in the Ionic deployment documentation and successfully deployed my Ionic app to my iPhone using Xcode's "play" button, using the free "Personal team" provisioning profile. However, I cannot deploy from the command line; running ionic cordova run iOS --device fails and outputs:
=== BUILD TARGET MyApp OF PROJECT MyApp WITH CONFIGURATION Debug ===
Check dependencies
No profiles for 'eu.empain.apps' were found: Xcode couldn't find a provisioning profile matching
'eu.empain.apps'.
Code signing is required for product type 'Application' in SDK 'iOS 10.3'
In Xcode, the team is set correctly in "Build settings > Signing", and the provisioning profile exists in ~/Library/MobileDevice/Provisioning\ Profiles/.
Not being able to launch through the command line prevents me from using live reload and console logs with -c and -l options. Hence, I cannot debug errors that occur on app launch.
I'm using:
Cordova 7.0.1
OS X 10.12.5
Xcode 8.3.3
Ionic 3.4.0
I found a possible duplicate, but the solution does not apply to me since all my versions are equal or greater to those mentioned in that thread.

Resources