I am learning NativeScript Vue and trying to transition from the online Play to Sidekick. I have gone thru the documentation:
Code Signing
Run App on Device
Here are the steps I have done thus far:
Created a paid Apple Developer account (don't really intend on selling on the app store but you never know, right?)
Created a Development Certificate
Downloaded the development certificate (ios_development.cer) to ~/Downloads
Created a Development Provisioning Profile
Downloaded the provisioning profile (xxx.mobileprovision) to ~/Downloads
Updated to the latest version of NativeScript as per these instructions
Opened my downloaded Play project in NativeScript Sidekick
Connected my iPhone 8+ to my Macbook Pro
In the Connected Devices section, updated the Provisioning and Certificates with the downloaded profile but I could not add the certificate generated above, but only with one created when I made my Apple Developer account.
If I do a local build then I get:
[18-10-25 07:15:27.576] Build failed. ENOENT: no such file or
directory, scandir '/Users/xxx/Library/MobileDevice/Provisioning
Profiles/'
Selected my attached iPhone and clicked "Run on Device" to get the error:
[18-10-25 07:01:26.078] Error detected during LiveSync on
716bd55f99272ba6acb7af3dfb3ce5d079a40ba5 for
/Users/xxx/projects/private/xxx. Error: ENOENT: no such file or
directory, scandir '/Users/xxx/Library/MobileDevice/Provisioning
Profiles/'
So this seems like a certificate/provisioning issue but I am uncertain what I am doing wrong. I do see that my Sidekick General settings "Application Identifier" has a warning ("This value should match the App ID of your iOS provisioning profile) but I do not see how to fix that in either Sidekick or Apple Developer and am not sure that is the root of these problems.
I guess you might have forgot to add your device id to developer portal and include same in provisional profile while creating.
Related
I have a react-native app where build are automatic using appcenter. It was working before i update to react-native 0.62.2 (i was on 0.61.2 before).
I have this error :
Code Signing Error: "gamefare-dev" requires a provisioning profile with the Associated Domains and Push Notifications features. Select a provisioning profile in the Signing & Capabilities editor.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 13.4'
I checked my certificate and redo all the upload and generation of .p12 and .mobileprovision file and still the same error.
Here is a screenshot of my associated certificate in apple developer portal :
Any clue on how i may be able to solve that problem ? Building and shipping using xcode locally work.
It appear that automatic signin in xcode can mess up things.
What i did to solve the problem was to do manual signin (untick automatic signin in Xcode) and choose directly the right .mobileprovision and load the certificate on my mac.
This will change some stuff in your .xcodeproj file. Publish them to your git repo.
Verify by trying to publish to appstore/testflight from your mac. When working, upload the exact same file .mobileprovision in Appcenter and the certificate from your mac keychain (.p12)
Relaunch the build and it should now work.
I want to install the app I had previously deleted back into Xcode.
'build for running' is succeed in xcode, but App installation failed when I run at connected iphone. The error messege is 'A signed resource has been added, modified, or deleted'.
i'm using this profile.
I solved this problem by changing the profile and code signing identity.
Your profile has been expired. Check your profile from developers.apple.com.
You can take a look on this link
UPDATED ANSWER:
You must need to user developer profile to installed directly into your device from xCode.
Distribution is only when you want to upload app on AppStore.
As in your screen shots, you are using Distribution profile for same. Kindly use developer profile to installed.
I have followed OneSignal's setup instructions for React Native, but
When I try to upload app to TestFlight I get the following error 'No profiles for 'com.myapp.ios.OneSignalNotificationServiceExtension' were found'
My XCode is 10.0.
Anyone help me? Thanks in advance.
Below instructions assume that your app is building and you have successfully deployed TestFlight builds in the past (since that is where I started from). I had to use the below as "Automatically manage signing" resulted in a build fail in Xcode 10:
Go to https://developer.apple.com/account/ios/profile
Click "+' to create a new provisioning profile
Choose the type of provisioning profile you want (I went with App Store since I use TestFlight builds to test)
for App ID choose "XC YOUR_DOMAIN_APP_ID OneSignalNotificationServiceExtension" and make sure enable the App Groups capability
after you have downloaded the provisioning profile, go into Xcode, turn off automatically signing on the OneSignalNotificationServiceExtension target in General tab and import the provisioning profile you just downloaded.
Use Product > Archive as usual to create your ipa file for App Store upload as usual
I'm getting the same error on appcenter. You can temporarily workaround this problem if you create a new provision file for the OneSignalNotificationServiceExtension identifier and sign your OneSignalNotificationServiceExtension with this provision.
(Your app provision should be different. your app -> com.app.example)
Environment:
Visual Studio 2015 on PC
Visual Studio (Xamarin) on Mac
iPad is connected to Mac
My setup used to work fine. From PC, I would be able to debug iOS apps running on the iPad.
Yesterday, I updated the Mac OS as well as my iPad iOS. I may have updated a few other things too. However, now I am running into problems deploying Xamarin iOS apps on the iPad.
I can create an iOS app in xcode and deploy it successfully. However, when I try to build my Xamarin app, I get the error "No installed profiles match the installed iOS signing identities."
There are a few posts on the forum that talk about a similar problem. I have gone through all these posts. I have also downloaded (once again) my iOS certificate from Apple developer portal and added it to my keychain store.
I still don't understand why I get the error. Would appreciate if someone can tell me how I can get the list of installed iOS signing identities and compare them against the list of provisioning profiles.
Also, when I look at my plist.info file, I see that, for key CfBundleIdentifier, the value is replace_bundle_id. I am wondering how I can tie this bundle id back to my provisioning profile. On Apple's portal, I see a bunch of provisioning profiles (I am part of an enterprise team). There is no field called bundle-id on these profiles. All each of them have is an app-id. Where do I related the bundle-id to the provisioning profile? Regards.
Provisioning profiles are all inside the directory: /Users/m.piccotti/Library/MobileDevice/Provisioning Profiles
Usually when I have these kind of problems and no time to understand what's wrong, I simply delete everything inside that directory and I download again all the profiles from Xcode. Naturally you can try this only if you are sure that you'll be able again to download all the provisioning profiles you need.
Or it could be that you have to set the right provisioning profile for the project:
This info is saved into iOS.csproj, the element CodesignProvision.
When you go to Apple Developer portal and check App IDs, you see the Name and ID of your app. The ID is your bundle ID. That you need to enter in your plist.
Based on that Xamarin will find your profiles.
Here is what I did to make it work. This is based on the feedback I received from the other two replies.
From the Apple developer portal, I looked at the ID of my app. This was in the form com.mycompany.myproduct. In my Xamarin iOS app's plist.info, the id was replace_bundle_id. I changed it to match the one from the portal.
Next, I cleaned the "Provisioning Profiles" directory on Mac and used xcode to create a test project and change the bundle id (from project options) to match the one on the portal. xcode automatically created a new profile.
This made the whole thing work. Now I am able to deploy and debug from my PC to iPad via Mac.
Our project was generated by Xamarin wizard a long time ago and used to work just fine until recently. I still do not know why replace_bundle_id worked in the past and stopped working all of a sudden. The only change I had made was that I upgraded the OSes on the Mac as well as my iPad.
I am trying to run my app locally and not through an emulator.
These are the following things that I have done:
set up the free provisioning profile
"trusted" my iPhone when prompted
Enabled these settings for provisioning profile:
However, I am still getting this error when trying to run the app locally on an iPhone
No installed provisioning profiles match the installed iOS code
signing keys
What else can be done to run my app locally?
Log into the Apple Developer member center and review your certificates. Down to the left you should see the Provisioning Profiles title. Click it and you'll find a list of the profiles you have. Now you need to create one with the same app identifier that your app has in Xamarin (you find it in the Info.plist file).
After that you need to open XCode and download it through Xcode -> Preferences -> Accounts.
Clean, rebuild and debug Xamarin project and try again.
Go to xcode/preference/ account add a apple ID if you don have any...if you have double click in the name ...and look the name appear in iOS Team Provisioning Profile.
Now open in xamarin the info.plist and in Bundle Identifier put this name.
and now should load a provisional profile.