Xcode的6.1版(6A1030) - 苹果马赫O型连接错误 - 建筑Xcode的6.1版(6A1

2019-05-12 03:36发布

我升级我的Xcode到最新版本:6.1版(6A1030)。
我用斯威夫特语言。
当我建立我的应用程序,我有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:

Answer 1:

像往常一样,升级的Xcode时:

  • 清洁你的build文件夹(产品 - >(Alt键) - >干净生成文件夹)
  • 清理项目(产品 - >清理)
  • 删除导出的数据
    • xcode的<6.3:窗口 - >管理器 - >删除派生数据
    • 的xcode> = 6.3:窗口 - >项目(选择项目) - >删除派生数据

然后尝试再次生成项目。



文章来源: Xcode Version 6.1 (6A1030) - Apple Mach O-Linker Error - Building