Xcode构建系统崩溃

时间:2019-02-20 15:50:35

标签: xcode build cocoapods

Xcode 10.1

  • Xcode产品->构建正常
  • 项目为OLD。从Xcode 9之前的版本迁移。
  • 项目中没有测试
  • 添加单元测试目标(仅包含空样本测试)
  • 产品->测试失败并导致构建系统崩溃

这似乎是由于从DerivedData/tmp目录的构建所自然创建的链接引起的。

Xcode编译器输出:

error: unexpected explicit output: '<TRIGGER: SymLink /Users/bill.shirley/Library/Developer/Xcode/DerivedData/Projects-aacmhfqthnovqgecjzbjrmjgtxae/Build/Products/Debug-iphoneos/ios1.app /tmp/Kevin.dst/Applications/ios1.app>'
error: unexpected service error: The Xcode build system has crashed. Please close and reopen your workspace.

enter image description here

相关但无济于事的Xcode: invalid symlink error when trying to run app in iOS simulator

我尝试了很多退出并重新启动Xcode(必需),删除派生数据,清理,删除模拟器,重新启动并清理所有内容并读取空测试。无济于事。

我很想从头开始重建这个项目,但是它规模巨大,而且我现在还没有时间(想要制作)

解决方法2:不进行测试。

编辑:以前未声明。

此应用使用了Cocoapods。

我尝试了建议enter link description here,使用项2-6,并在进行更改(和Podfile更新)并将其更改为

时运行pod install
ld: -bundle_loader can only be used with -bundle
clang: error: linker command failed with exit code 1 (use -v to see invocation)

调用是:

  

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs /iPhoneSimulator12.1.sdk -L / Users / bill.shirley / Dev / ios / Build / Products / Debug-iphonesimulator -L / Users / bill.shirley / Dev / ios / Projects / Kevin /../../ Pods / CardIO / CardIO -F / Users / bill.shirley / Dev / ios / Build / Products / Debug-iphonesimulator -F / Users / bill.shirley / Dev / ios / Build / Products / Debug / iphonesimulator / Calendar -F / Users /bill.shirley/Dev/ios/Build/Products/Debug-iphonesimulator/FirebaseCore -F / Users / bill.shirley / Dev / ios / Build / Products / Debug-iphonesimulator / FirebaseMessaging -F / Users / bill.shirley / Dev / ios / Build /产品/ Debug-iphonesimulator / GoogleUtilities -F / Users / bill.shirley / Dev / ios / Build / Products / Debug-iphonesimulator / Heartland-iOS-SDK -F / Users / bill.shirley / Dev / ios / Build /产品/ Debug-iphonesimulator / IGListKit -F / Users / bill.shirley / Dev / ios / Build / Products / Debug-iphonesimulator / IOForm -F / Users / bill.shirley / Dev / ios / Build / Products / Debug-iphonesimulator / OpenCV -F / Users / bill.shirley / Dev / ios / Build / Products / Debug-iphonesimulator / Protobuf -F / Users / bill .shirley / Dev / ios / Build / Products / Debug-iphonesimulator / XMLDictionary -F / Users / bill.shirley / Dev / ios / Build / Products / Debug-iphonesimulator / nanopb -F / Users / bill.shirley / Dev / ios /Projects/Kevin/../../Pods/Crashlytics/iOS -F / Users / bill.shirley / Dev / ios / Projects / Kevin /../../ Pods / Fabric / iOS -F / Users / bill .shirley / Dev / ios / Projects / Kevin /../../ Pods / FirebaseAnalytics / Frameworks -F / Users / bill.shirley / Dev / ios / Projects / Kevin /../../ Pods / FirebaseInstanceID / Frameworks -F / Users / bill.shirley / Dev / ios / Projects / Kevin /../../ Pods / GoogleAppMeasurement / Frameworks -F / Applications / Xcode.app / Contents / Developer / Platforms / iPhoneSimulator.platform / Developer / Library / Frameworks -filelist /Users/bill.shirley/Dev/ios/Build/Intermediates.noindex/Kevin.build/Debug-iphonesimulator/ios1Tests.build/Objects-normal/x86_64/ios1Tests.LinkFileList -Xlinker -rpath -Xlinker @e xecutable_path / Frameworks -Xlinker -rpath -Xlinker @ loader_path / Frameworks -Xlinker -rpath -Xlinker @ executable_path / Frameworks -Xlinker -rpath -Xlinker @ loader_path / Frameworks -mios-simulator-version-min-12.1 -dead_strip -bundle_loader / Users / bill.shirley / Dev / ios / Build / Products / Debug-iphonesimulator / ios1.app / ios1 -Xlinker -object_path_lto -Xlinker /Users/bill.shirley/Dev/ios/Build/Intermediates.noindex/Kevin.build/Debug- iphonesimulator / ios1Tests.build / Objects-normal / x86_64 / ios1Tests_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -L / Applications / Xcode.app / Contents / Developer / Toolchains /XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/bill.shirley/Dev/ios/Build/Intermediates.noindex/Kevin.build/Debug-iphonesimulator/ios1Tests.build/Objects-normal /x86_64/ios1Tests.swiftmodule -lstdc ++ -ObjC -lCardIO -lc ++ -lopencv_core -lopencv_imgproc -lsqlite3 -lz -framework AVFoundation -fram ework Accelerate -framework AudioToolbox -framework日历-framework CoreMedia -framework CoreVideo -framework Crashlytics -framework FIRAnalyticsConnector -framework Fabric -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseInstanceID -framework FirebaseMessaging -framework Foundation -framework GoogleApplandments -framework -framework IGListKit -framework IOForm -framework MobileCoreServices -framework OpenGLES -framework Protobuf -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -framework UIKit -framework XMLDictionary -framework nanopb -framework opencv2 -framework XCTest -Xlinker -sectcreate -Xlinker Xlinker __entitlements -Xlinker /Users/bill.shirley/Dev/ios/Build/Intermediates.noindex/Kevin.build/Debug-iphonesimulator/ios1Tests.build/ios1Tests.xctest-Simulated.xcent -framework Pods_ios1Tests -Xlinker -dependency_info -Xlink er /Users/bill.shirley/Dev/ios/Build/Intermediates.noindex/Kevin.build/Debug-iphonesimulator/ios1Tests.build/Objects-normal/x86_64/ios1Tests_dependency_info.dat -o /Users/bill.shirley/Dev/ ios / Build / Products / Debug-iphonesimulator / ios1.app / PlugIns / ios1Tests.xctest / ios1Tests

0 个答案:

没有答案