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

iphone – 由于Apple链接器错误导致应用程序重命名后单元测试无法运行,第1张

概述我最近更改了我的应用程序的名称,现在我的单元测试没有运行,我收到Apple链接器错误. 知道如何解决这个问题吗?如果我在Xcode中展开我的’Products’文件夹,则有2个文件: MyApp.app MyAppTests.octest [显示为红色] 更新:删除所有构建文件夹(派生数据)仍然无法正常工作! Ld /Users/my/Library/Developer/Xcode/Derived 我最近更改了我的应用程序的名称,现在我的单元测试没有运行,我收到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

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

以上是内存溢出为你收集整理的iphone – 由于Apple链接器错误导致应用程序重命名后单元测试无法运行全部内容,希望文章能够帮你解决iphone – 由于Apple链接器错误导致应用程序重命名后单元测试无法运行所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1057027.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)

保存