xcode 6 beta 7:A signed resource has been added modified or deleted.

后端 未结 3 1548
别跟我提以往
别跟我提以往 2021-02-08 00:19

When I\'m running the application on device aftercleaning, removing derived data, first time it runs without any issues. Second time when I\'m trying to run, it say\'s \"A signe

相关标签:
3条回答
  • 2021-02-08 00:34

    Edit: There is an another workaround: for each extension target containing .swift file, add build pre-action in project running scheme configuration:

    touch "${PROJECT_DIR}/SOME SWIFT FILE IN EXTENSION.SWIFT"
    

    So I've found a workaround for this issue. For now we can't have swift code in extensions. As mentioned in the comment

    When removed all extension targets that contains swift code it's started working normally. I think it's a bug in xcode, for now if we have extension with swift code, don't know why, but second time run gives "A signed resource has been added modified or deleted." error.

    0 讨论(0)
  • 2021-02-08 00:47

    I used a slight modification of Cloud Xu's script to delete both the .appex and .appex.dSYM

    rm -rf ~/Library/Developer/Xcode/DerivedData/YourAppName-*/Build/Products/Debug-iphoneos/com.yourcompany.Name.extension.*
    

    You can put this in your scheme so that it executes with every build:

    Edit scheme... > Expand the Run mode in the sidebar > Pre-actions > Click '+' > New Run Script Action.

    0 讨论(0)
  • 2021-02-08 00:56

    It is still not fixed in XCode 6 RTM. But I found an easy walk around. Simply delete the ShareExtension.appex folder under your build. Then rebuild again. You don't need to clean project, so rebuild is quite fast.

    A actually alias the command to do the cleaning

    rm -rf ~/Library/Developer/Xcode/DerivedData/<your_app>-*/Build/Products/Debug-iphoneos/ShareExtension.appex/
    
    0 讨论(0)
提交回复
热议问题