加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

iphone – 由于Apple链接器错误导致应用程序重命名后单元测试无

发布时间:2020-12-14 19:47:19 所属栏目:百科 来源:网络整理
导读:我最近更改了我的应用程序的名称,现在我的单元测试没有运行,我收到Apple链接器错误. 知道如何解决这个问题吗?如果我在Xcode中展开我的’Products’文件夹,则有2个文件: MyApp.app MyAppTests.octest [显示为红色] 更新:删除所有构建文件夹(派生数据)仍然
我最近更改了我的应用程序的名称,现在我的单元测试没有运行,我收到Apple链接器错误.

知道如何解决这个问题吗?如果我在Xcode中展开我的’Products’文件夹,则有2个文件:

MyApp.app
MyAppTests.octest [显示为红色]

更新:删除所有构建文件夹(派生数据)仍然无法正常工作!

Ld
/Users/my/Library/Developer/Xcode/DerivedData/srStudio-bdkguonwasdiazelguppliitkdox/Build/Products/Debug-iphonesimulator/companyDesignerTests.octest/companyDesignerTests
normal i386
cd /Users/my/Documents/Working/companyDesigner
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH “/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin”
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang
-arch i386 -bundle -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk
-L/Users/my/Library/Developer/Xcode/DerivedData/srStudio-bdkguonwasdiazelguppliitkdox/Build/Products/Debug-iphonesimulator
-F/Users/my/Library/Developer/Xcode/DerivedData/srStudio-bdkguonwasdiazelguppliitkdox/Build/Products/Debug-iphonesimulator
-F/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/Developer/Library/Frameworks
-F/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/Developer/Library/Frameworks
-filelist /Users/my/Library/Developer/Xcode/DerivedData/srStudio-bdkguonwasdiazelguppliitkdox/Build/Intermediates/srStudio.build/Debug-iphonesimulator/companyDesignerTests.build/Objects-normal/i386/companyDesignerTests.LinkFileList
-mmacosx-version-min=10.6 -bundle_loader “/Users/my/Library/Developer/Xcode/DerivedData/srStudio-bdkguonwasdiazelguppliitkdox/Build/Products/Debug-iphonesimulator/s
& r.app” -Xlinker -objc_abi_version -Xlinker 2 -lxml2 -Xlinker
-no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -framework CoreData -framework CoreGraphics -framework Foundation -framework UIKit -framework SenTestingKit -o /Users/my/Library/Developer/Xcode/DerivedData/srStudio-bdkguonwasdiazelguppliitkdox/Build/Products/Debug-iphonesimulator/companyDesignerTests.octest/companyDesignerTests

ld: in
/Users/my/Library/Developer/Xcode/DerivedData/srStudio-bdkguonwasdiazelguppliitkdox/Build/Products/Debug-iphonesimulator/s
& r.app,can’t map file,errno=22 for architecture i386 Command
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang
failed with exit code 1

解决方法

我不知道这是否可以帮助您解决问题但是您可以尝试转到组织者并在“项目”选项卡下点击“删除”以获取所有派生数据

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读