Xcode 版本 6.1 (6A1030) - Apple Mach O-Linker 错误 - 构建
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25998429/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 05:40:15 来源:igfitidea点击:
Xcode Version 6.1 (6A1030) - Apple Mach O-Linker Error - Building
提问by profskz
I upgraded my Xcode to the latest version: Version 6.1 (6A1030).
I use Swift language.
When I build my app, I have 25 issues:
我将我的 Xcode 升级到最新版本:版本 6.1 (6A1030)。
我使用 Swift 语言。
当我构建我的应用程序时,我有 25 个问题:
Apple Mach-O Linker error
Undefined symbols for architecture i386:
"__TFE10FoundationCSo11NSPredicateCfMS0_Ft6formatSSGSaPSs11CVarArgType___GSqS0__", referenced from:
__TFC19TestBentley_Network8EventDAO11updateEventfS0_FCS_5EventT_ in EventDAO.o
__TFC19TestBentley_Network8EventDAO10deletEventfS0_FCS_5EventT_ in EventDAO.o
"__TFE10FoundationCSo7NSArray8generatefS0_FT_CS_15NSFastGenerator", referenced from:
__TFC19TestBentley_Network8EventDAO10deletEventfS0_FCS_5EventT_ in EventDAO.o
"__TFE10FoundationCSo8NSString24convertFromStringLiteralfMDS0_FVSs12StaticStringDS0_", referenced from:
__TFO19TestBentley_Network13NotificationsCfMS0_FT8rawValueCSo8NSString_GSqS0__ in Notifications.o
__TFO19TestBentley_Network13Notificationsg8rawValueCSo8NSString in Notifications.o
__TFC19TestBentley_Network30NetworkSearchPropositionButtoncfMS0_FT5coderCSo7NSCoder_S0_ in NetworkSearchPropositionButton.o
__TFC19TestBentley_Network8HomeViewcfMS0_FT5frameVSC6CGRect9networkVCCS_21NetworkViewController9membersVCCS_21MembersViewController10servicesVCCS_22ServicesViewController8profilVCCS_20ProfilViewController8eventsVCCS_20EventsViewController_S0_ in HomeView.o
__TFC19TestBentley_Network24EventsListViewControllercfMS0_FT_S0_ in EventsListViewController.o
__TFC19TestBentley_Network8MenuViewcfMS0_FT5frameVSC6CGRect_S0_ in MenuView.o
__TFC19TestBentley_Network29NetworkSearchPropositionsList18reloadPropositionsfS0_FGSqCSo8NSString_T_ in NetworkSearchPropositionsList.o
...
"__TFE10FoundationSS19_bridgeToObjectiveCfSSFT_CSo8NSString", referenced from:
回答by zisoft
As usual when upgrading Xcode:
像往常一样升级 Xcode:
- Clean your build folder (Product -> (Alt key) -> Clean Build Folder)
- Clean project (Product -> Clean)
- Delete derived data
- Xcode < 6.3: Window -> Organizer -> Delete derived data
- Xcode >= 6.3: Window -> Projects (select project) -> Delete derived data
- 清理您的构建文件夹(产品 ->(Alt 键)-> 清理构建文件夹)
- 清洁项目(产品 -> 清洁)
- 删除派生数据
- Xcode < 6.3: Window -> Organizer -> 删除派生数据
- Xcode >= 6.3: Window -> Projects(选择项目)-> 删除派生数据
Then try to build your project again.
然后尝试再次构建您的项目。