I have two problems when compiling and installing an application on my iOS device.
Below are the details of the situation I find myself in.
I have an education licence (I work for a University); I log in to my developer.apple.com account, create my developer certificate, create an identity with the necessary capabilities, add the devices I need, and make a profile with all this information.
If I log in from Xcode (14 beta 6) and try to retrieve the profile automatically, I get this error: "The data couldn't be read because it is missing", and below the Try Again button, another error says: No profile for my.app.id was found. Unchecking "Automatically manage signing" and downloading the profile file from the developer portal, everything works: the code is compiled and signed, and a simple hello world app is correctly installed on my iPhone. So there is some problem downloading profiles from the developer portal. Why is this happening?
Apart from this problem (which can be overcome in some way), I cannot install the Wireguard app on my device from its source (https://github.com/WireGuard/wireguard-apple).
If I use the simulator as a target, the code compiles correctly, and the app is installed on the simulator.
However, when I try to install the app on my device, after manually loading the profile, I get that the Wireguard app does not compile because a capability is missing. More precisely, the errors are as follows:
Provisioning profile "myapp" doesn't support the Network Extensions capability
Provisioning profile "myapp" doesn't include the com.apple.developer.networking.networkextension entitlement
The developer.apple.com portal does not have the Network Extension capability, so I don't know how to add it.
I have tried removing the Network Extension capability from the app configuration and using the Private VPN capability instead. The result is that the app is compiled and installed correctly, but when I try opening the vpn, the following logs come out:
2022-09-07 17:21:50.072024+0200 WireGuard[35390:2672224] [] Failed to save configuration docks-2: Error Domain=NEConfigurationErrorDomain Code=10 "permission denied" UserInfo={NSLocalizedDescription=permission denied}
2022-09-07 17:21:50.072167+0200 WireGuard[35390:2671981] [] Failed to save configuration: Error Domain=NEVPNErrorDomain Code=5 "permission denied" UserInfo={NSLocalizedDescription=permission denied}
2022-09-07 17:21:50.072783+0200 WireGuard[35390:2671981] Add: Saving configuration failed: Error Domain=NEVPNErrorDomain Code=5 "permission denied" UserInfo={NSLocalizedDescription=permission denied}
I assume that these logs are due to the lack of the Network Extension capability that Wireguard is using.
Is the lack of this capability on the portal due to the education licence? Or is there an alternative way to solve this problem?
Thank you
Related
I am trying to run an IOS app on which I am working onto my iPhone. I was able prior to upgrading either my iPhone or XCode – I am not sure exactly when it would not work. The app will work on the simulator but not on the iPhone. The app builds successfully but then I get an error “Unable to launch net.jimbarry.Clima and when I look at the details here is what they say:
Details
Unable to launch net.jimbarry.Clima
Domain: com.apple.platform.iphoneos
Code: -12
Request to launch net.jimbarry.Clima failed.
Domain: com.apple.dt.deviceprocesscontrolservice
Code: 2
Failure Reason: The operation couldn’t be completed. Unable to launch net.jimbarry.Clima because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user. : Failed to launch process with bundle identifier 'net.jimbarry.Clima'.
The operation couldn’t be completed. Unable to launch net.jimbarry.Clima because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.
Domain: FBSOpenApplicationErrorDomain
Code: 3
Failure Reason: Unable to launch net.jimbarry.Clima because it has an invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.
User Info: {
BSErrorCodeDescription = Security;
}
System Information
macOS Version 10.15.5 (Build 19F101)
Xcode 11.6 (16141)
I have IOS version 13.6 on my iPhone
I am running MacOS Catalina Version 10.15.5
I tried:
cleaning my project (CMD + SHIFT + K)
Restarting XCode
Restarting the Mac
Restarting the iPhone
I never could get my app to work on my iPhone, so I finally just tried to click on the app icon that had been created previously and a pop up appeared on my screen with the title "Untrusted Developer" followed by "Your device management settings do not allow using apps from developer 'Apple Development: xxxxx on this iPhone. You can allow using these apps in Settings. I then googled the error and this link solved my problem - https://howtoapple.com/how-to-trust-untrusted-enterprise-developer/
This is clearly a certificates issue.
If it installs but does not run on device, personally in most of the cases is a wrong certificate set for the debug builds. Either there is an entitlement missing (permissions like location, iCloud, etc) or often i saw this using a release certificate for a debug build, especially if it installs but does not launch.
I want to test an iOS application using Xamarin Test Recorder using iOS simulator. To do that I want to publish the project. When trying to publish it for archive, I got this error:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: Error: No valid iOS code signing keys found in keychain. You need to request a codesigning certificate from https://developer.apple.com. (MobileApp1.iOS)
Do we need a certificate to publish the project?
When I drag and drop the .app to simulator it doesn't get installed. When I tried to install debug version it gives below error. Failed to chmod /Users/../Library/Developer/CoreSimulator/Devices/8A0508B3-02E8-4601-A239-B6712F67FF4D/data/Library/Caches/com.apple.containermanagerd/Bundle/Application/1B8A7B17-D9D0-44A6-8584-657FF1AB5815/MobileApp1.app/MobileApp1 : No such file or directory" Release app also not get installed(No error or warning). Note that this is a xamarin project.What shall I do now?
First of all you do not need to sign/publish your app to use it with Test Recorder.
You can start recording tests from .app located on bin/iPhoneSimulator/Debug/ folder.
The “No valid iOS code signing keys found in keychain” happens when there are no provisioning profiles on your machine. The easiest fix is to create a new app from XCode and deploy it on the device, XCode will automatically downloads the required profiles and certificates
I am setting up an Xcode Bot to automatically upload and distribute my beta app.
I have setup a mac with macOS Server and Xcode activated and am able to build and export an IPA manually just fine.
The Xcode Bot I created also archives and exports an IPA with no problem.
However, when I try to run the Crashlytics submit script in the Xcode Bot's post triggers, the uploading fails. But if I save the bot generated IPA and manually call the Crashlytics script via Terminal, it uploads just fine. It seems that only the Xcode Bot fails to submit to Crashlytics.
I have all the correct certificates installed on the server Keychain and everything works fine for manual archive/export both in Xcode and using the Xcode Bot's generated IPA.
Here is the log from Xcode Bot:
2016-11-22 17:15:53.942 submit Crashlytics: Crashlytics.framework/submit 1.3.5 (18)
2016-11-22 17:16:03.125 submit Crashlytics: Unable to package source due to error: Error Domain=CLSIPABuilderErrorDomain Code=-6 "(null)" UserInfo={UnderlyingError=Error Domain=CLSCodeSignerErrorDomain Code=-2 "(null)" UserInfo={arguments=(
"--sign",
ACFE8B8E177196BFF1974841752020FE96687508,
"--all-architectures",
"--force",
"--entitlements",
"/var/folders/81/5t89fdcn3h3680gh99mgvl7934dkfg/T/com.crashlytics.ipas/E357A31C-B1A2-424B-8A5A-E7D499A92C73/Payload/entitlements.xml",
"/var/folders/81/5t89fdcn3h3680gh99mgvl7934dkfg/T/com.crashlytics.ipas/E357A31C-B1A2-424B-8A5A-E7D499A92C73/Payload/Ebates Beta.app"
), environment={
"CODESIGN_ALLOCATE" = "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate";
}, status=1, stderr=ACFE8B8E177196BFF1974841752020FE96687508: no identity found
, command=/usr/bin/codesign, stdout=}, SourcePath=/var/folders/81/5t89fdcn3h3680gh99mgvl7934dkfg/T/com.crashlytics.ipas/E357A31C-B1A2-424B-8A5A-E7D499A92C73}
2016-11-22 17:16:03.187 submit Crashlytics: Failed to prepare the binary for release
Been pulling my hair out over this all day, hoping someone can shed some light on this problem.
Ok so turns out you need to run the app on a device directly from Xcode on the server machine so that Xcode will automatically generate all the appropriate XC iOS provisioning profiles. Apparently the Crashlytics script will re-package the IPA and need valid provisioning profiles in order to do so. I think the Xcode Bot generates an IPA but it is not fully code signed until you save from the bot results, instead of just running from a bot post-trigger.
If you go to the developer.apple.com portal and look under Provisioning Profiles you should see something like this:
I am trying to build a cordova app for iOS here on my Mac, and I am plagued by the "No codesigning identities found" error. Based on other posts, the frequent resolutions include stopping and restarting Xcode and rebooting, and redownloading the provisioning profile. None of that has worked for me.
It is odd because I reference the provisioning profile by GUID in my build.json, but the error mentions the profile by name. This indicates to me that something somewhere is successfully locating the profile. So I am not sure why it isn't able to use it.
I get the error when I build at the command line using:
cordova build ios --device --buildConfig="build.json"
I would think I should be able to reproduce the issue by building in Xcode, but when I load the cordova project in Xcode and build it, it seems to be fine. But perhaps I am not doing the equivalent step in Xcode. I am just choosing to "Build" in Xcode. Perhaps there is another way to do the equivalent in Xcode?
This same codebase does build successfully on our build box, so this is undoubtedly a config issue here on my Mac. What do I need to do besides download and install the provisioning profile? I have done this both by downloading from Apple Developer and by directly installing through the Xcode preferences.
Below is the exact error I am getting:
Code Sign error: No codesigning identities found: No codesigning identities (i.e. certificate and private key pairs) that match the provisioning profile specified in your build settings (“[the name of our profile]”) were found.
I am a relative novice building an app developed by someone else. I have tried everything near the top of the Google search results for this error, but not much else. I am likely missing something obvious. Pointers and help would be greatly appreciated.
I had not installed the Enterprise distribution certificate with the private key here on my Mac. Once I did that it worked.
I have successfully upload the app using the AppLoader and the app status is "waiting for review"
but when I am trying to debug with that certificate and provisioning profile I am getting this error. (from the flash builder)
Error occurred while installing the application:
Installation Error: ApplicationVerificationFailed.
when I try to install it using IFunbox I am getting this error
Installation failed
Error# e8008015. Sorry for the inconvenience. Please send us feedback
Also could not install in using the itunes.
IOS 7.0 the device is not jailbreak
You can't install an app built with an App Store distribution profile from any source other than the App Store without a jailbreak. If you want to test it, test it with an Ad Hoc provisioning profile and build type in the Export Release Build menu. The build is entirely identical, the only difference being what certs it is signed with.