Having issue in React Native app running on IOS device - ios

I am running my react native app on IOS but it is not working it is showing an error:
Code signing is required for product type 'Application' in SDK 'iOS 13.0'
No profiles for 'org.reactjs.native.example.app' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'org.reactjs.native.example.app'.
Failed to register bundle identifier. The app identifier "org.reactjs.native.example.app" cannot be registered to your development team. Change your bundle identifier to a unique string to try again.

you dont have a developer team associated with your target , or you must have used a duplicate bundle identifier.
Your bundle identifier is already in use by other developers I guess, so just change your bundle identifier in the Identify tab right above your Signing tab to another one:
For eg: Bundle Identifier: com.xyz.abc
And you can view this in the signing and capabilities tab after you selected your target in xcode
After that it should work, otherwise tell me the error, ill solve it

Related

Xcode couldn't find any iOS App Store provisioning profiles matching 'bundle id for app extension' signing problem

When I am trying to automatically manage signing for an archive with XCode 12.1. I receive an error message related to my app extension. There were no problems previously (with earlier XCode versions) and I didn't change anything. Error is the following:
Failed to register bundle identifier The app identifier 'bundle id for app extension' cannot be registered to your development team because it is not available. Change your bundle identifier to a unique string to try again.
No profiles for 'bundle id for app extension' were found
Xcode couldn't find any iOS App Store provisioning profiles matching 'bundle id for app extension'.
Bundle id for extension is correct and starts with the bundle id of the app. Something like:
id.bundle.app
id.bundle.app.extension
This is weird as profile is there and is the same as was previously.
.
As I am signing an extension, I am using a wildcard. Profiles are up to date. I also tried to recreate all profiles from scratch, it didn't help.
At the same time automatically manage signing is enabled in XCode and there is no error.
What can be the problem?
UPD.
If I sign manually and while signing select wildcard it works, but it is weird that it doesn't work for automatic signing.
I finally found the problem.
The problem was that I didn't create an identifier for my sticker extension and when I was working with signing I used a wildcard. It was working perfectly until I changed XCode to a newer version.
So, to fix the problem, I created an identifier for stickers extension, using the correct naming
id.bundle.app
id.bundle.app.extension

How do we run carouselview from MAC on IOS device?

I have downloaded a Xamarin solution zip from
https://github.com/alexrainman/CarouselView
I tried running this solution on my MAC PC and deploying it to my Ipad. I encountered this error saying "could not find any available provisioining profiles for iOS" .
In order to resolve this I followed this link
https://learn.microsoft.com/en-us/xamarin/ios/get-started/installation/device-provisioning/free-provisioning
to create a free provisioning profile.
I have checked the settings of the iOS Bundle Signing settings of the solution i wish to run (carousel view) but although I do see that my profile is available for selecting and although I selected my profile, I still encountered the same error saying that they could not find any available provisioning profiles for IOS.
Anyone able to help me out with this?
You're on the right track. A provisioning profile can only be used for a specific bundle identifier.
The one in the Xamarin.Forms CarouselView demo is set to com.slbdev.demo.ios. Which (probably) differs from the one set in your provisioning profile.
In order to fix this open the Info.plist file and set the Bundle Identifier field to the one you used while generating your provisioning profile.
See bullet 5 in the post you linked:
Under the General > Identity section, make sure that the Bundle
Identifier matches exactly the Bundle Identifier of your Xamarin.iOS
app and ensure the deployment target matches or is lower than your
connected iOS device. This step is extremely important, as Xcode will
only create a provisioning profile with an explicit App ID:

Different Bundle Identifier for Cocoapods frameworks not recognised

I am trying to upload an app in the AppStore. The app is divided into two, the app and the cocoapods frameworks. I have created a bundle identifier for the app with a corresponding provisioning profile. The frameworks come with their own bundle identifier and when I tried to replace them with my app bundle identifier the app returned the following error - "An error was encountered while running (Domain = LaunchServicesError, Code = 0)". Therefore I am assuming that the bundle identifier of the cocoapods framework needs to remain as is. Therefore I created a provisioning profile for each of the three bundle identifiers assuming this would resolve the issue.
With this, both the build and archive are successful however when I am uploading the archived app into the app store, xcode is returning the following error - "iTunes Store operation failed. No suitable application records were found. Verify your bundle identifier".
I have tried to reset the bundle id and provision profile from the preference in xcode however issue persist. The build settings - code signing correspond to the respective provisioning profile.
My questions are;
1) Can I have more than one provisioning profile for an app ? (ie. am I doing it right in creating provisioning profile for the cocoapods frameworks).
2) If so, why the provisioning profile is not being recognised (ie. marked as none) once it is archived ?

How should I ensure the correct info.plist is used when building app with multiple targets

I've got a common codebase from which I want to build multiple applications. Currently I've gotten the test app to build and I can successfully test push notifications.
Having confirmed the initial push notifications work, I've duplicated the target. In the new (duplicate) target's info tab I've modified the bundle identifier, and in the duplicate's info.plist file I've updated the bundle identifier to be the second app which I've authorized for push notifications.
Under Build Settings for the duplicate, under the Packaging section I can see the Info.plist value is set to the duplicate's filename. However when I attempt to build the second target I get the following Xcode error:
Code Sign error: Provisioning profile does not match bundle identifier: The provisioning profile specified in your build settings (“iOS Team Provisioning Profile: app.mine.PushNotificationTest”) has an AppID of “app.mine.PushNotificationTest” which does not match your bundle identifier “app.mine.PushNotificationTest2”.
Is there a method to make sure that the correct app name and info.plist file is used when the app is built?
The problem is not that it is not correctly pulling the Info-plist for the second target - the problem is that it IS pulling the new info.plist. In your second target info.plist, you have changed the bundle identifier. Your provisioning profile, however, is tied to a specific bundle ID, in this case "app.mine.PushNotificationTest". However, for target 2, you are trying to build using bundle ID "app.mine.PushNotificationTest2" using a provisioning profile that's only set up to build to "app.mine.PushNotificationTest". That is why you are getting the error.
What you will need to do is go into the developer center and create a new provisioning profile for the second bundle id. Then, in your second target settings in Xcode, change target 2 to use the new provisioning profile that has been set up to build for bundle ID app.mine.PushNotificationTest2.
Note that when you are using special entitlements, like push notifications or iCloud, you cannot use wildcards in you provisioning profiles (e.g. app.mine.*). That is why you will need a different provisioning profile for each bundle ID you plan to use with push notifications.

iPhone app distribution building warning: This bundle is invalid

When i build my app in Xcode I got the warning below which prohibits me from uploading my app to the App Store:
This bundle is invalid. The application-identifier entitlement is not
formatted correctly; it should contain your 10-character App ID Seed,
followed by a dot, followed by your bundle identifier:
com.companyname.appname (-19053)
I have tried to change bundle indentifier to "85B9GK2627.com.companyname.appname". But I get the same warnings. Does anybody know how to resolve this problem?
When XCode says to change it to "XXXXX.com.companyname.appname" it means you should actually use the values you supplied when creating the app on iTunesConnect. ".com.companyname.appname" is just an example.
Copy the bundle identifier from portal which you have used in your distribution provisioning profile and add that to info.plist. Then perform clean and build.

Resources