-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOS: entitlements of main target are overwritten #99
Comments
I think it comes from running iosAddTarget.js on the after_prepare hook. By fixing the problem you noticed here: #95 I revert to the after_plugin_install hooks (with some other fixes). Before PR, could you test my branch:
I hope this fixes both your problems at the same time! |
@BenjaminPoncet i tested your branch, now no more errors in cordova platform add ios... during this breakpoint the project file does contain the share extension target.. at this breakpoint the project file the share extension target is gone |
My bad! I checked that all hooks were well executed in all cases but I did not check again that the ShareExtention was present in the xcode project. |
@dickverweij, Got it! |
almost @BenjaminPoncet .. it is now without erors. but.. there was a reason you did a "after_prepare" step in the first place. in the prepare step cordova overwrites the PRODUCT_BUNDLE_INDENTIFIER of the ShareExt target .. :-( |
Really!? Good point! Cordova really doesn't like multi-target projects... In a first one, I had switched to the prepare hooks but not especially for the PRODUCT_BUNDLE_INDENTIFIER but simply by thinking that those are the hooks that cover more usage. I just rebase my branch to keep the after_prepare hook! However, during my tests, I noticed that by executing the Any advice? |
Advice ? :-) |
@dickverweij can you please share the patch that you did that worked for you? |
In your latest change "CODE_SIGN_ENTITLEMENTS" are set in the project for every build target of the project.
This is fine for the ShareExt target, but not for the other targets in the project.
It basically overwrties all previously stored settings for those targets
(for example push notification entitlements or associated domains)
It should inject the ShareExt app group setting into the entitlements and leave other settings intact.
The text was updated successfully, but these errors were encountered: