我有一个需要重命名的应用程序,因此只需稍作更改即可重复使用代码,并且遇到了麻烦。
我按了此链接,它似乎涵盖了它,但是当我尝试构建它时,我收到一个链接错误,该错误也如下:
链接到资源:
http://matthewfecher.com/app-developement/xcode-tips-the-best-way-to-change-a-project-name-in-xcode/
这是我得到的链接错误和我看到的信息
LD /用户/ jeffjanes /库/开发人员/Xcode/DerivedData/solfEightFive-Aqlpurtbbyfkqmgjdryrxicllljh/Build/Products/Debug-iphoneos/solfEightFiveTests.xctest/solfEightFiveTests常规arm64
cd“/用户/ jeffjanes / Xcode项目/ solfEightFive / shell”
导出IPHONEOS_DEPLOYMENT_TARGET = 8.0
导出PATH =“/ Applications / Xcode.app / Contents / Developer / Platforms / iPhoneOS.platform / Developer / usr / bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/ usr / bin:/ bin: / usr / sbin:/ sbin“
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/ iPhoneOS8.0.sdk -L /用户/ jeffjanes /库/开发人员/ Xcode / DerivedData / solfEight Build /产品/ Debug-iphoneos -F / Applications / Xcode.app / Contents / Developer / Platforms / iPhoneOS.platform / Developer / SDKs / iPhoneOS8.0.sdk / Developer / Library / Frameworks -F / Applications / Xcode.app /目录/开发人员/平台/iPhoneOS.platform/开发人员/库/框架-F / Applications / Xcode.app / Contents / Developer / Platforms / iPhoneOS.platform / Developer / SDKs / iPhoneOS8.0.sdk / Developer / Library / Frameworks-文件列表/Users/jeffjanes/Library/Developer/Xcode/DerivedData/solfEightFive-aqlpurtbbyfkqmgjdryrxicllljh/Build/Intermediates/solfEightFive.build/Debug -iphoneos / solfEightFiveTests.build / Objects-normal / arm64 / solfEightFiveTests.LinkFileList -Xlinker -rpath -Xlinker @ executable_path / Frameworks -Xlinker -rpath -Xlinker @ loader_path / Frameworks -dead_strip -bundle_loaderX / Users / jeffjaner / Develop /DerivedData/solfEightFive-aqlpurtbbyfkqmgjdryrxicllljh/Build/Products/Debug-iphoneos/shell.app/shell -framework XCTest -fobjc-arc -fobjc-link-runtime -miphoneos-version-min = 8.0 -Xlinker -dependency_info -Xlinker / Users / jeffjanes /库/开发人员/Xcode/DerivedData/solfEightFive-aqlpurtbbyfkqmgjdryrxicllljh/Build/Intermediates/solfEightFive.build/Debug-iphoneos/solfEightFiveTests.build/Objects-normal/arm64/solfEightFiveTests_ency Xcode / DerivedData / solfEightFive-aqlpurtbbyfkqmgjdryrxicllljh / Build / Products / Debug-iphoneos / solfEightFiveTests.xctest / solfEightFiveTests
ld:找不到文件:/Users/jeffjanes/Library/Developer/Xcode/DerivedData/solfEightFive-aqlpurtbbyfkqmgjdryrxicllljh/Build/Products/Debug-iphoneos/shell.app/shell
铛:错误:链接器命令失败,退出代码为1(使用-v查看调用)
我有什么想念的吗?我尝试清洁它,似乎没有效果。
这只是一些澄清,上面链接中描述的过程提出了以下几点:
在屏幕左上角的项目导航器 Pane 中,缓慢双击项目名称。然后允许Xcode重命名文件
和
以相同的方式重命名该方案
那是我所做的一切,也许仅此一项还不够,所以如果有人知道正确的方法,请告诉我。
最佳答案
最近我也遇到了这个问题。
您的XCode项目应该有两个目标。应用程序的一个目标,测试的另一个目标。
在测试目标的“构 build 置”中,有一个名为“测试主机”的设置。重命名应用程序目标后,此设置的值将不会更新。
正确修改“测试主机”设置值,一切正常。
关于xcode - 在Xcode 6中重命名App,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26197022/