Xcode couldn’t find any iOS App Development provisioning profiles - ios

keep getting an error running:
sudo ionic cordova build ios
or
sudo ionic cordova build ios -allowProvisioningUpdates
or
sudo ionic cordova build ios -allowProvisioningUpdates --buildFlag="-UseModernBuildSystem=0"
It was previously working and stopped all of a sudden.
note: Using new build system
note: Planning build
note: Constructing build description
Build system information
error: No profiles for ‘com.angularfire.appname’ were found: Xcode couldn’t find any iOS App Development provisioning profiles matching ‘com.angularfire.appname’. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target ‘Project Name’)
** ARCHIVE FAILED **
xcodebuild: Command failed with exit code 65
[ERROR] An error occurred while running subprocess cordova.
Yes, I have a profile provisioned with a dev team email address.

Related

Flutter Gitlab CI CD implementation for iOS build profile not found error

Currently i am trying to implement CI for generate iOS and Android builds. for me Android Build generated successfully but when starts build iOS build it gives following error :
Running Xcode build...
Xcode build done. 3.3s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/tmp/flutter_tools.LGxyvf/flutter_ios_build_temp_dirMvl2ik/temporary_xcresult_bundle
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete
error: No profiles for 'com.example.cicddemo' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.example.cicddemo'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'Runner' from project 'Runner')
Result bundle written to path:
/tmp/flutter_tools.LGxyvf/flutter_ios_build_temp_dirMvl2ik/temporary_xcresult_bundle
It appears that your application still contains the default signing identifier.
Try replacing 'com.example' with your signing id in Xcode:
open ios/Runner.xcworkspace
Encountered error while building for device.
So how we can import profiles and generate build for iOS using Gitlab CI
It is said that no provisioning profiles matching is enabled. If you are using Fastlane for deployment you must activate matching process. That means uploading provisioning profiles files to a repository. Then giving access permission by SSH to your main project to reach that repository.Follow the instructions here

Codemagic: Error when building for iOS "No profiles for 'com.example.example' were found: Xcode could't find any iOS App Development

I try to build for iOS my app with Codemagic. I followed the steps for signing iOS apps in the Codemagic docs.
No profiles for 'com.example.example' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.example.example'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
Full error message:
Archiving fun.gatch.chat.example...
Automatically signing iOS for device deployment using specified development team in Xcode project: JB7VLPB7F6
Running pod install... 85.5s
Running Xcode build...
Xcode archive done. 9.5s
Failed to build iOS app
Error output from Xcode build:
↳
** ARCHIVE FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/m7/h1mg7c7x40ddjz6mxjxm3htr0000gn/T/flutter_tools.TDA8uV/flutter_ios_build_temp_dirVLpaDD/temporary_xcresult_bundle
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
error: No profiles for 'fun.gatch.chat.example' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'fun.gatch.chat.example'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'Runner' from project 'Runner')
Result bundle written to path:
/var/folders/m7/h1mg7c7x40ddjz6mxjxm3htr0000gn/T/flutter_tools.TDA8uV/flutter_ios_build_temp_dirVLpaDD/temporary_xcresult_bundle
Error (Xcode): No profiles for 'fun.gatch.chat.example' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'fun.gatch.chat.example'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
It appears that there was a problem signing your application prior to installation on the device.
Verify that the Bundle Identifier in your project is your signing id in Xcode
open ios/Runner.xcworkspace
Also try selecting 'Product > Build' to fix the problem:
Encountered error while archiving for device.
My problem was that the values for APP_STORE_CONNECT_KEY_IDENTIFIER, CERTIFICATE_PRIVATE_KEY were wrong.
This was a little tricky, because the message for this printed out in the step where I set up the keychain. The error messages give you a concrete reasoning why the signing is failing, like:
GET https://api.appstoreconnect.apple.com/v1/bundleIds?limit=100&sort=name&filter%5Bidentifier%5D=bundle.id&filter%5Bplatform%5D=IOS returned 401: Authentication credentials are missing or invalid. - Provide a properly configured and signed bearer token, and make sure that it has not expired. Learn more about Generating Tokens for API Requests https://developer.apple.com/go/?id=api-generating-tokens
app-store-connect: error: argument --certificate-key: Provided value
app-store-connect: error: argument --private-key: Provided value is not a valid PEM encoded private key

Xcode couldn't find any iOS App Development provisioning profiles matching

I'm Building an App with Flutter. It running fine but when I trying to prepare for App-Store release using flutter build iOS OR flutter build ipa its showing the following error. I'm new to this iOS environment. (I do login with my developer account). Do I have to make any changes in Xcode Runner ?
Sambits-MacBook-Air:sleepkart sambitdas$ flutter build ios
Building com.sleepkart.team for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: SDW79QN7H3
Running Xcode build...
Xcode build done. 4.6s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
error: No profiles for 'com.sleepkart.team' were found: Xcode couldn't find any iOS App Development provisioning profiles matching
'com.sleepkart.team'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass
-allowProvisioningUpdates to xcodebuild. (in target 'Runner' from project 'Runner')
Encountered error while building for device.
Sambits-MacBook-Air:sleepkart sambitdas$

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

cordova build to *.ipa

Trying to create *.ipa file by files that generate cordova. Found useful this manual Automating a cordova ios build. So first of all i do such commands:
cordova create <folder-name> <package-name> <app-name>
cordova platform add ios
Then when i try to execute this command
cordova build ios --device
I got this errors
Code Sign error: No matching codesigning identity found: No
codesigning identiti es (i.e. certificate and private key pairs)
matching “iPhone Developer” were fou nd. CodeSign error: code signing
is required for product type 'Application' in SDK ' iOS 7.1'
** BUILD FAILED **
What i`m doing wrong? Thanks for any suggestions.

Resources