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

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$

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

error: No profile for team '***' matching 'match AdHoc com.reddwarf.musicapp' found: Xcode couldn't find any provisioning profiles matching

when I build the flutter app in GitHub Actions using this command:
flutter build ios --release --no-sound-null-safety
shows error like this:
Run flutter build ios --release --no-sound-null-safety
Building com.reddwarf.musicapp for device (ios-release)...
Upgrading AppFrameworkInfo.plist
Automatically signing iOS for device deployment using specified development team in Xcode project: ***
Running pod install... 3.7s
Running Xcode build...
Xcode build done. 7.3s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
error: No profile for team '***' matching 'match AdHoc com.reddwarf.musicapp' found: Xcode couldn't find any provisioning profiles matching '***/match AdHoc com.reddwarf.musicapp'. Install the profile (by dragging and dropping it onto Xcode's dock item) or select a different one in the Signing & Capabilities tab of the target editor. (in target 'Runner' from project 'Runner')
Encountered error while building for device.
Error: Process completed with exit code 1.
why this happen? I could build in my local machine XCode successs.
$ ~/apps/flutter/bin/flutter build ios --release --no-sound-null-safety ‹ruby-2.7.2›
Changing current working directory to: /Users/dolphin/Documents/GitHub/flutter-netease-music
Building com.reddwarf.musicapp for device (ios-release)...
Upgrading AppFrameworkInfo.plist
Automatically signing iOS for device deployment using specified development team in Xcode project: 6JP4P88ZJB
Running pod install... 2,528ms
Running Xcode build...
└─Compiling, linking and signing... 18.0s
Xcode build done. 140.2s
Built /Users/dolphin/Documents/GitHub/flutter-netease-music/build/ios/iphoneos/Runner.app.
(base)
But I could not build in GitHub Actions, what should I do to fix this build problem? This is the local xcode config:
I finally found we should not sign in build, the GitHub Action did not contains provision file:
flutter build ios --release --no-codesign --no-sound-null-safety
then sign the app using Fastlane the next step.

Flutter build results in error about app signing when building for IOS

I am trying to build my flutter app for iOS using the command flutter build ios.
When I do so, it fails with the following error...
error: No profiles for 'com.me.myapp' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.me.myapp'. Automatic
signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'Runner' from project 'Runner')
When I open the runner project in xcode, the automatic signing check box is already checked.
I do not have a physical device, so I can not create a provisioning profile. I was previously able to build this app on iOS, and I am not sure exactly what changed.
Thanks for any help that can be provided.

Flutter iOS - Build a release version without a real device?

As an Android dev, I've been baffled by the idea of building against targets.
I don't have an iOS device and have been debugging against the iOS simulator.
However, I've gotten to a point where I want to disperse a release .ipa to our internal team. Can this be achieved?
When I run flutter build ios, I see the following:
Xcode's output:
↳
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
error: Failed to create provisioning profile. There are no devices
registered in your account on the developer website. Plug in and select a
device to have Xcode register it. (in target 'Runner' from project 'Runner')
error: No profiles for 'xxx.xxx.xxx' were found: Xcode couldn't
find any iOS App Development provisioning profiles matching
'xxx.xxx.xxx'. (in target 'Runner' from project 'Runner')
I did google more, and i found it
Provisioning Profile With No Physical Devices
SOLVED:
In case anyone else is having trouble. I had to create a provisioning
profile for Distribution - App Store. And then in Xcode turn off
Automatically manage signing, and select the provisioning profile
manually for Signing(Debug), and Signing (Release).
Now I do not need a physical device to archive, unlike what the linked
duplicate states.

Failing to deploy a Flutter app on my attached Ipad

I am developing a personal flutter app on a Mac and trying to deploy to my Ipad attached by USB.
I have created a provisioning profile on my Apple developer account however I don't know how to use it for Flutter.
My error from Android builder is:
Launching lib/aopAppMain.dart on Chris’s iPad in debug mode...
Signing iOS app for device deployment using developer identity: "iPhone Developer: chrisr#instantobjects.com (XXXXXXX)"
Starting Xcode build...
Xcode build done. 1.4s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
Code Signing Error: "Runner" requires a provisioning profile. Select a provisioning profile for the "Debug" build configuration in the project editor.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 12.0'
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 12.0'
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 12.0'
Could not build the precompiled application for the device.
Error launching application on Chris’s iPad.
If I load the project in XCode it only has an Info tab and a Build Settings tab.
If I fire up a swift project, the Provisioning Profile assignment seems to happen on the General Tab and at least my Flutter project hasn't got one of those in XCode.
I used flutter create to create a new app and migrated my source across and everything is now ok.

Resources