Xcode Check Dependencies Error: OneSignalNotificationServiceExtension requires a provisioning profile - ios

I am brand new to Xcode but paid for GoNative to turn our web app into a native mobile app. When following the instructions on GoNative and using the OneSignal extension I am getting the following error when I try to Archive the app or when I click Play button to test. I looked in the project editor and I can't seem to find how to get around this error. I have my iOS certs in xcode but don't know how to add the provisioning profile to the dependency.
Error:
OneSignalNotificationServiceExtension requires a provisioning profile.
Select a provisioning profile for the "Debug" build configuration in
the project editor. Code signing is required for product type 'App
Extension' in SDK 'iOS 10.3'
UPDATE:
When selecting Onesignal as target I have the following selected (no option for automatic)

Go to your Xcode Settings -> General and observe targets like this. Select OneSignalNotificationServiceExtension target and checkmark automatic sign in if you did same for main app also. Otherwise, select provisioning profile related to your app.
The Same solution is given in GoNative Support. Check it out: GoNative Support

Related

Why am I unable to build the IOS app, I made

I am trying to build an Flutter Ios App, and when I run "flutter build ios", I get an error like
error: No profiles for 'com.runin.carrick' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.runin.carrick'. 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 go to Xcode I go to Signing and Capabilities and there is 2 messages, It says I should plug in an IOS device, but I do not have one, is it required?
https://prnt.sc/uk7fi7
I already have a Paid Apple Developer Account.
I found a way to do it without a mobile device, if you do to the Apple Developer website you can, create certificates but you have to use manual signing though.

Conflict archiving my Cordova App on iOS

When I try to make an archive for iOS using xCode for my Cordova App, I have 2 errors message :
TheApp has conflicting provisioning settings. TheApp is automatically signed, but code signing identity iPhone Developer: mail#mail.com (NUMBER) has been manually specified. Set the code signing identity value to "iPhone Developer" in the build settings editor, or switch to manual signing in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.1'
I don't understand what I have to do...
In the "build settings" , try to find Code signing section, in this you have some parts as code signing identity
In the part for developer set this to iPhone Developer , not the one your name mentioned in .
As you are using Cordova CLI you should do the signing with the CLI too.
But if you want to use Xcode, you have to open the build-release.xcconfig file located at Resources/config and remove the two lines with iPhone Distribution value

No need for code signing with Xcode 7 for developers

If there is no need or code signing with Xcode 7 for developers then how it can achieved with xcode 7 realease.
As its still showing error : CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 9.0'
It is possible or not?
Launch your application on devices using free provisioning (iOS, watchOS)
In Xcode, add your Apple ID to Accounts preferences, described in Adding Your Apple ID Account in Xcode.
In the project navigator, select the project and your target to display the project editor.
Click General and choose your name from the Team pop-up menu.
Now click on Fix Issue
#Thats it done. I have tested in Objective-C Project. #Adithya : Thank you for your contribution
Found this Apple Docs link. Make sure you have followed these steps.
I believe currently it only works with Swift.

iOS8 Dynamic Frameworks -> CodeSign error: code signing is required for product type 'Framework' in SDK 'iOS 8.3'

I am using the iOS8 Dynamic Frameworks that I build myself and link within my iOS app. It was working fine in the simulator and on device, but when trying to archive a Release build for it, I keep getting this error:
Code Sign error: No matching provisioning profiles found: None of the valid provisioning profiles allowed the specified entitlements: com.apple.developer.ubiquity-kvstore-identifier, keychain-access-groups, com.apple.developer.icloud-container-identifiers, com.apple.developer.icloud-services, com.apple.security.application-groups, com.apple.developer.ubiquity-container-identifiers.
CodeSign error: code signing is required for product type 'Framework' in SDK 'iOS 8.3'
Within the app target -> Build Phases -> Embed Frameworks -> the framework is linked there, and "Code Sign on Copy" checkbox is checked.
Within the framework target -> Build Settings -> I have set Provisioning Profile to "Automatic", and for Code Sign Identity, under Release, I am using "iOS Distribution"
I have 3 different app targets that need to build off this Framework.
I'm confused:
does the framework need it's own AppID registered in the Developer Center?
does the framework need it's own Provisioning Profile?
can the framework use the same Entitlements file from the iOS app target?
Thanks.
I had the same problem but fixed it by:
Setting the team to None in the General tab of the target settings.
Changing this value seems to also reset the code signing params in the build settings, to 'iOS Developer' for both debug and release. If it doesn't then change these params yourself.
I can now build my framework with no errors.
The newly built framework can be checked for signing by entering codesign --display --verbose=4 FRAMEWORK_PATH into the terminal.
This tool should return: code object is not signed at all
The framework does not need its own app ID registered in the developer center, provisioning profile, or entitlements. I have an app on the app store that contains an app target, a today extension target, watch extension targets, and a framework target for shared code.
I was encountering this issue with a second app I was attempting to setup a build for, and I was able to resolve it by changing the signing for my framework to use automatic settings instead of "Don't Code Sign" (iOS Developer identity / Automatic profile). This causes the error to go away and the framework still seems to be resigned during the archive as one would expect. It seems that some build settings are required, even if it is just going to resign.
EDIT: It's worth mentioning that once you set it to automatic, you must also have a provisioning profile installed that is appropriate for the bundle id set for the targets being built (a wildcard development profile should suffice).

How to test Cordova/ionic app on iOS device?

I'm building an app which now runs fine in the iOS emulator, so I now want to test the app on an iOS device. I registered with the Apple Developer Program and ran ionic run ios, which ended with the following message:
Code Sign error: No provisioning profiles found: No non–expired provisioning profiles were found.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.2'
So I opened XCode and went to Preferences > Accounts and added my Apple ID. I then clicked View Details... and then the refresh icon so it fetched two Signing Identities. The box below which should display the Provisioning Profiles is empty though:
I then read this article on the Apple Developer site which explains that I need to:
Set a bundle ID
Assign my app to a team
Create the Team Provisioning Profile
The bundle ID should supposedly be set in XCode. Because I am under the assumption that the bundle ID is set in my ionic config.xml file I'm unsure of how to proceed though.
Does anybody know how I can (preferably very easily) test my app on iOS devices? All tips are welcome!
What I did was to create a new project into Xcode, as soon it is created is showing the General tab, under Identity is showing a message saying that can not find the proper certified, something like that, and there is a button "Fix..."
just click it, the passport is requested and you are done.
I just try again and works. Xcode fixed my provisioning profiles sync for me.
Try this
Select Preferences from Xcode
Go to accounts and select agent name
Select view details to check status of your profiles
Select any profile and click refresh on corner below to update profiles.
This should update your profile with expiration dates
Go to project General and downgrade to 8.1.

Resources