You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/08/03 17:58:41 UTC

[GitHub] [cordova-ios] jkasten2 opened a new issue #1135: iOS - Xcode - "Code Signing Entitlements" (CODE_SIGN_ENTITLEMENTS) should be set on the target level instead of project level

jkasten2 opened a new issue #1135:
URL: https://github.com/apache/cordova-ios/issues/1135


   # Bug Report
   "Code Signing Entitlements" (CODE_SIGN_ENTITLEMENTS) should be set on the target level instead of project level. This results in the signing entitlements to point to the same file when creating a new target.
   
   ## Problem
   This creates a problems where if you add a Capability in Xcode to either your new target or the main Cordova one it is added to all other ones.
   
   ### What is expected to happen?
   I would expect a `.entitlement` for each target.
   
   
   ### What does actually happen?
   "Code Signing Entitlements" get set on the "Project" instead of each target to `$(PROJECT_DIR)/$(PROJECT_NAME)/Entitlements-$(CONFIGURATION).plist`.
   ![image](https://user-images.githubusercontent.com/645861/128062310-991feb38-d11f-45c8-98f9-bf5f1caaf763.png)
   
   ## Information
   If you create a new Xcode project you can see the "Code Signing Entitlements" is set at the Target level instead of Project.
   Project Level is blank:
   ![image](https://user-images.githubusercontent.com/645861/128062736-02928eb9-9e11-42cd-abfb-f0f07ded1e2b.png)
   
   Target level is set for main target:
   ![image](https://user-images.githubusercontent.com/645861/128062806-e0c0e2ef-01f8-4c10-bb1e-08648b87d397.png)
   
   My other target has it's own file:
   ![image](https://user-images.githubusercontent.com/645861/128062935-04af32e6-209b-47db-9cd0-dd329cb7b58b.png)
   
   ### Cordova code reference
   The value is being assigned here:
   https://github.com/apache/cordova-ios/blob/6.2.0/bin/templates/scripts/cordova/build.xcconfig#L43
   However the change isn't simply updating this value (as I don't believe Xcode has a `$(TARGET_NAME)` place holder.
   
   ### Version information
   ```
   Cordova Packages:
   
       cli: 10.0.0
           common: 4.0.2
           create: 3.0.0
           lib: 10.0.0
               common: 4.0.2
               fetch: 3.0.1
               serve: 4.0.0
   
   Project Installed Platforms:
   
       ios: 6.2.0
   
   Project Installed Plugins:
   
       cordova-plugin-whitelist: 1.3.5
   
   Environment:
   
       OS: macOS 11.5.1 (20G80) (darwin 20.6.0) x64
       Node: v16.5.0
       npm: 7.19.1
   
   ios Environment:
   
       xcodebuild:
   Xcode 12.5.1
   Build version 12E507
   ```
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org