iOS Framework codesign for appStore - ios

I have created a framework and added it in my other project. Everything is working fine when I generate Adhoc or development build and even app store build is generated successfully. But when I submit my app to iTunesConnect it give me below error:
Despite this question says that Framework consumer will re-codesign it. Thanks

Check if you installed the distribution certificate in keychain access in your mac. Check if the secret key is missing. Make sure it is a valid certificate. Check your provisioning profile in apple developer portal

Related

Not getting untrusted developer prompt with Apple Enterprise with MAUI

I'm signing an app using an Apple Enterprise certificate and an in-house provisioning profile. I've added the IPA, along with the manifest.plist, to an HTTPS page and I can install the icon at least, with the itms-services://?action=download-manifest&url= link. If I view the device with the Apple Configurator app I can verify the provisioning profile was installed on the device.
BUT: when I try to open the app I don't get the expected message Untrusted Enterprise Developer and I don't see the option to trust the profile in Settings > General > Device Management. Instead I get a message This app cannot be installed because its integrity could not be verified. I see the same message in console logs as well as "A valid provisioning profile for this executable was not found".
This is a MAUI app but I'm getting the same problem if I create an app in Xamarin with the same app id. HOWEVER: if I create an app with the same app id in Xcode it works fine. All three are using the same manifest.plist, app id, version, build number, etc.
It's got to be a certificate issue, right? But I've checked a million times to make sure dotnet publish is using the correct cert. I've un-zipped the IPA after it's built and verified the correct provisioning profile was added. I've re-signed with Xcode and tried using that IPA. I'm not sure what else to try and I don't know why it works with an Xcode project but not Xamarin / MAUI.
Anyone have any ideas?
After much trial and error I was able to solve this by building using the command line only and not putting any of the Codesign information in a PropertyGroup in the .csproj. According to the documentation this shouldn't be necessary but it's working for me now.
My full build command is:
dotnet publish -f:net7.0-ios -c:Release /p:RuntimeIdentifier=ios-arm64 /p:ArchiveOnBuild=true /p:CodeSignProvision="your provisioning profile name" /p:CodesignKey="Your distribution certificate name”

IOS application, ID bundle errors on XCode

I created an application with the Ionic Framework that allows me to make hybrid applications.
When I open my project on XCode, I have errors from XCode that I can not solve.
My errors are:
"Automatic signing is unable to resolve an issue with the target's
entities file"
"Provisioning profile ios team provisioning profile * doesn't include the aps-environment entitlement "
"Code signing is required for product type 'Application' in SDK 'iOS 10.3' "
I think the ID bundle has a mistake, however, I do not understand how to solve it.
How do I create a correct ID bundle without going through the project creation box since mine is already creating basic? (My ID bundle was generated by the global application's in the config.xml file)
Is it necessary to have a paid developer account to be able to create one? Or can I test my app simply on my phone?
Thanks in advance!
These errors you are getting because of the no Provisioning profile & Developer Certificate.
To Brief of what is provisioning profile & Developer certificates are, These are security certificates providing by Apple to make sure that the iOS application is built by identified developer.
If you see there is a check mark: "Automatically manage signing" on.
Because of that, it's trying to create provisioning profiles and
certificates automatically without any proper apple membership
account. That results in an error.
To run on a device, you don't need to have paid account. Any Apple ID will work. You need to have at least normal Apple ID and have to put any random bundle identifier there to run on your iPhone. (You can follow this link to How to run on iPhone without certificates)
Answering another question of yours: Yes, it's required to have Apple paid account to create a Bundle identifier. Even if you test it now on iPhone using above trick, to distribute in future to AppStore you need one.

Project is not working on IPhone where as it's working fine on Simulater

I am working on xamarin IOS and my project is working fine on IOS simulator but when i run on IPhone 6. it's giving some issue.
"No valid iOS code signing keys found in keychain. You need to request a codesigning certificate from https://developer.apple.com. RSystemApp.iOS"
Please tell me what will i do to solve this issue. if anyone have any idea to solve this issue or have any link to solve the issue please suggest me so that i can run my app on Iphone also
thanks
When we have to run the iOS app on a device, we have to code sign the build. For that a valid provisioning profile and certificate is required.
Provisioning profile and developer certificate should be there on developer.apple.com, If not ten you have to create those there. Download those from there. Make sure you have added the device UDID while creating the provisioning profile.
Install provisioning and cert in your iPhone configuration utility and key chain.
Your bundle identifier should match with your AppID. You can confirm this by checking the provisioning profile in iPhone Configuration utility.
In Build Setting of your project, select these provisioning and certificate in code signing section.
If everything will be in this way, Your app will run on Device.
Login to your Apple developer account and verify that you have everything in place to deploy an app on to an actual device:
Do you have your certificates created and installed?
Did you create your App ID?
Have you registered your device(s)?
Do you have a Provisioning Profile?
Are all these marked as correct on your build Mac? Best way is to check that with XCode before doing it with Xamarin Studio or Visual Studio.
Create a little test app in XCode if necessary and deploy it to your app.
Is that works, import the profile and certs into Xamarin/Visual Studio and it should work.

Signing swift app with Enterpise provisioning profile

If I run the app via Xcode 6, using the development profile, everything is fine.
But if I deploy the app via Enterprise profile, it crashes on start.
Logs from the device say the following:
Dyld Error Message: Library not loaded: #rpath/libswiftCore.dylib
Did anyone encounter the same problem?
Had the same problem here. The solution that finally worked for me was to
Revoke the certificate.
Generate a new certificate.
Generate a new distribution profile.
See here https://stackoverflow.com/a/27326230/1344293.
Note: If you have apps in production which are signed with your "old" certificate and you revoke that one, those apps will eventually not work anymore. So I suggest you only revoke the certificate if you have "control" over the installed apps and you can easily redeploy your apps with the new certificate/provisioning profile.
Are you using frameworks that contain Swift code in your project? By default embedded content isn't expected to contain Swift. Change this in Build Settings:

xcode the signature was invalid contains disallowed entitlements Error in ios

I am developing since 2 years ios Projects few are uploaded to app store.
But today I found new error while uploading app with xcode4.6.2. I have searched a lot.!
Also I realesed 1st version version of product in iTunes.
please help me to sove this problem.
And
I Revoke distributed cert. Delete provision.
create new distributed certificate and using it generate new provision,
I can see that cert in my keychain aceess.
also able to get provision on xcode with labeled Valid Profile.
The app build sucessfull without any error.
But still same error I found while uploading app on to appStore.
Solved issue... I have submitted the app from origin machine where the project was created... I don't know whether it is right ans or not.. But It works for me...
Don't revoke your certificate. generate a new certificate(distributed).
generate a new provisioning profile(distributed) using that certificate.
Remove existing provisioning profile from organiser.
Download and install certificate and provisioning profile again.
Sign your code with new provisioning profile.
Clean and build your project.
Achieve it for app store.

Resources