问题描述
我的 xcode 版本是 6.3.1,我的应用是一个带有 WatchKit 目标的 swift 项目.
My xcode version is 6.3.1, my app is a swift project with a WatchKit target.
当我在 iPhone 6 上运行时,Xcode 显示此消息已添加、修改或删除已签名的资源".
Xcode showed this message "A signed resource has been added, modified, or deleted" when I ran it on my iPhone 6.
它在 iPhone 5s、iPad 和模拟器上运行良好,所以我想这不是证书问题,对吧?
It works fine on iPhone 5s, iPad and simulator, so I guess this is not a certificate issue, right?
我尝试删除问题中建议的派生数据"xcode 6 beta 7:A 签名资源已添加修改或删除.
I tried deleting the "derived data" suggested in the question xcode 6 beta 7:A signed resource has been added modified or deleted.
删除派生数据"后,第一次运行,构建成功"后自动停止(该应用程序没有安装到我的iPhone),当我再次运行时,消息再次显示.
After I delete the "derived data", the first time I run, it stopped automatically after "build succeeded"(the app didn't install to my iPhone), when I ran it again, the message showed again.
我也试过重启 Xcode、Macbook、iPhone 6,还是一样.
I also tried restart Xcode, Macbook, iPhone 6, still the same.
推荐答案
如果你用的是coaoapods,cocoapods的这个commit可以解决部分这个问题
If you use coaoapods, this commit of cocoapods can solve part of this problem
https://github.com/CocoaPods/CocoaPods/pull/3390
如果此链接无效
编辑 $COCOAPODS_DIR/lib/cocoapods/generator/embed_frameworks_script.rb
Edit $COCOAPODS_DIR/lib/cocoapods/generator/embed_frameworks_script.rb
66 - echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers/\" --filter \"- PrivateHeaders/\" ${source} ${destination}"
67 - rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers/" --filter "- PrivateHeaders/" "${source}" "${destination}"
66 + echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers/\" --filter \"- PrivateHeaders/\" --filter \"- Modules/\" ${source} ${destination}"
67 + rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers/" --filter "- PrivateHeaders/" --filter "- Modules/" "${source}" "${destination}"
//行号可能会改变.
但是还是需要删除一些数据(包括ModuleCache和YourProject-xxxx)
But still need to delete some data (include ModuleCache and YourProject-xxxx) in
~/Library/Developer/Xcode/DerivedData
每次编译应用之前.
这篇关于Xcode 6.3.1“已添加、修改或删除已签名资源"问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!