对于在Bata 6中遇到类似问题的任何人。我通过删除/ Users / [您的用户名] / Library / Developer / Xcode / DerivedData中的内容解决了这个问题,如本文Suddenly getting compiler crash "arrayForceCast" in Swift XCode beta 6中所见< / p>
原帖:
我刚刚安装了Xcode beta 6并且遇到了非常不寻常的错误。我无法弄清楚它们是什么。
Undefined symbols for architecture arm64:
"__TFSsoi1oUSs17_RawOptionSetType_USs21BitwiseOperationsTypeSs9Equatable__FTQ_Q__Q_", referenced from:
__TFC9CoolSpots29ProfileSettingsViewController13turnOnOffPushfS0_FCSo8UISwitchT_ in ProfileSettingsViewController.o
__TFC9CoolSpots11AppDelegate11applicationfS0_FTCSo13UIApplication29didFinishLaunchingWithOptionsGSqCSo12NSDictionary__Sb in AppDelegate.o
"__TFSs15_arrayForceCastU___FGSaQ__GSaQ0__", referenced from:
__TFC9CoolSpots8LocationcfMS0_FT6objectCSo8PFObject_S0_ in Location.o
__TFC9CoolSpots19ShareViewController7mapViewfS0_FTGSQCSo9MKMapView_21didAddAnnotationViewsGSQGSaPSs9AnyObject____T_ in ShareViewController.o
__TFC9CoolSpots23LoginMenuViewController7FBLoginfS0_FT_T_ in LoginMenuViewController.o
__TFC9CoolSpots21ProfileViewController7mapViewfS0_FTGSQCSo9MKMapView_21didAddAnnotationViewsGSQGSaPSs9AnyObject____T_ in ProfileViewController.o
__TFFC9CoolSpots21ProfileViewController11viewDidLoadFS0_FT_T_U_FTGSqGSaPSs9AnyObject___GSqCSo7NSError__T_ in ProfileViewController.o
__TFFFC9CoolSpots21ProfileViewController11viewDidLoadFS0_FT_T_U_FTGSqGSaPSs9AnyObject___GSqCSo7NSError__T_U0_FTGSqGSaPS1____GSqS2___T_ in ProfileViewController.o
__TFFFC9CoolSpots21ProfileViewController11viewDidLoadFS0_FT_T_U0_FTGSqCSo8PFObject_GSqCSo7NSError__T_U0_FTGSqGSaPSs9AnyObject___GSqS2___T_ in ProfileViewController.o
...
"__TFSs26_forceBridgeFromObjectiveCU__FTPSs9AnyObject_MQ__Q_", referenced from:
__TFC9CoolSpots8LocationcfMS0_FT11coordinatesVSC22CLLocationCoordinate2D15relatedActivityCSo7NSArray8objectIdSS7addressSS_S0_ in Location.o
__TFC9CoolSpots8LocationcfMS0_FT6objectCSo8PFObject_S0_ in Location.o
__TFC9CoolSpots19ShareViewController14viewWillAppearfS0_FSbT_ in ShareViewController.o
__TFC9CoolSpots19ShareViewController15prepareForSeguefS0_FTGSQCSo17UIStoryboardSegue_6senderGSQPSs9AnyObject___T_ in ShareViewController.o
__TFC9CoolSpots19ShareViewController21cameraViewTookPicturefS0_FCSo7UIImageT_ in ShareViewController.o
__TFFC9CoolSpots19ShareViewController14reverseGeocodeFS0_FGSqCSo10CLLocation_T_U_FTGSQGSaPSs9AnyObject___GSQCSo7NSError__T_ in ShareViewController.o
__TFC9CoolSpots27ActivityTableViewController11viewDidLoadfS0_FT_T_ in ActivityTableViewController.o
...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
答案 0 :(得分:14)
是的!我也完全被这些错误搞糊涂了。
然后我记得删除&#34; DerivedData&#34;对于项目(或者像我一样,整个文件夹),可以在这里找到:
〜/库/开发商/ Xcode中/ DerivedData
(感谢@drmarvelous)
答案 1 :(得分:8)
升级到xcode 6 beta 6后出现了同样的奇怪错误。对我来说,问题已通过Product -> Clean
修复。如果这不能解决错误,请按住选项键并再次点击菜单栏中的Product
,然后您会在下拉菜单中看到Clean Build Folder...
点击它。
答案 2 :(得分:0)
我遇到了同样的问题,但仅删除“DerivedData”文件夹并不适用于我。我必须在位置的高级部分中将构建位置更改为“唯一”。我相信这可能是因为我必须使用以下命令隔离xcode以使其打开:
sudo xattr -dr com.apple.quarantine /Applications/Xcode6-Beta6.app
但我不确定。