0

我是本机应用程序的初学者。我正在使用 Objective C 作为前端、SUP 作为中间件和 SAP 作为后端开发应用程序。我有一个有效的配置证书和一个有效的包标识符。我尝试将我的一个简单应用程序部署到设备中(iPAD)与后端没有任何连接,只有从一个屏幕到另一个屏幕的一些基本导航。它已成功部署。

但我的问题是,当我部署连接到中间件并使用 SUP 库的应用程序时,它显示构建失败“链接器命令失败,退出代码 1”。我认为这是因为使用了 SUP 库。我的应用程序在模拟器上成功运行。现在我能做些什么来解决这个问题?请帮我解决这个问题。我的 Xcode 版本是 4.3,模拟器是 5.1,设备版本是 5.1.1(iPad2)。

下面给出了错误日志的一部分:

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_SUPDataType", referenced from:
      objc-class-ref in FieldServiceAssign_ServiceEngineer.o
      objc-class-ref in FieldServiceCustomer_Installations.o
      objc-class-ref in FieldServiceCustomer_InstalledBases.o
      objc-class-ref in FieldServiceCustomers.o
      objc-class-ref in FieldServiceImages.o
      objc-class-ref in FieldServiceInstalledBase_Address.o
      objc-class-ref in FieldServiceInstalledBase_Components.o
      ...
  "_OBJC_CLASS_$_SUPDatabaseMetaDataRBS", referenced from:
      _OBJC_CLASS_$_FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DBMetaData in FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DBMetaData.o
  "_OBJC_CLASS_$_SUPAbstractStructure", referenced from:
      _OBJC_CLASS_$_FieldServiceChangeLogKey in FieldServiceChangeLogKey.o
      _OBJC_CLASS_$_FieldServiceKeyGeneratorPK in FieldServiceKeyGeneratorPK.o
      _OBJC_CLASS_$_FieldServiceKeyPackageName in FieldServiceKeyPackageName.o
      _OBJC_CLASS_$_FieldServiceLocalKeyGeneratorPK in FieldServiceLocalKeyGeneratorPK.o
  "_OBJC_CLASS_$_SUPKeyGenerator", referenced from:
      objc-class-ref in FieldServiceKeyGenerator.o
      _OBJC_CLASS_$_FieldServiceKeyGenerator in FieldServiceKeyGenerator.o
  "_OBJC_CLASS_$_SUPDefaultCallbackHandler", referenced from:
      _OBJC_CLASS_$_CallbackHandler in CallbackHandler.o
  "_OBJC_METACLASS_$_SUPClassMetaDataRBS", referenced from:
      _OBJC_METACLASS_$_FieldServiceChangeLogKeyMetaData in FieldServiceChangeLogKeyMetaData.o
      _OBJC_METACLASS_$_FieldServiceKeyGeneratorPKMetaData in FieldServiceKeyGeneratorPKMetaData.o
      _OBJC_METACLASS_$_FieldServiceKeyPackageNameMetaData in FieldServiceKeyPackageNameMetaData.o
      _OBJC_METACLASS_$_FieldServiceLocalKeyGeneratorPKMetaData in FieldServiceLocalKeyGeneratorPKMetaData.o
      _OBJC_METACLASS_$_FieldServicePersonalizationParametersMetaData in FieldServicePersonalizationParametersMetaData.o
      _OBJC_METACLASS_$_FieldServiceSISSubscriptionKeyMetaData in FieldServiceSISSubscriptionKeyMetaData.o
  "_OBJC_METACLASS_$_SUPKeyGenerator", referenced from:
      _OBJC_METACLASS_$_FieldServiceKeyGenerator in FieldServiceKeyGenerator.o
  "_OBJC_CLASS_$_SUPClassDelegate", referenced from:
      objc-class-ref in FieldServiceChangeLogKey.o
      objc-class-ref in FieldServiceKeyGeneratorPK.o
      objc-class-ref in FieldServiceKeyPackageName.o
      objc-class-ref in FieldServiceLocalKeyGeneratorPK.o
      objc-class-ref in FieldServicePersonalizationParameters.o
      objc-class-ref in FieldServiceSISSubscriptionKey.o
  "_OBJC_METACLASS_$_SUPAbstractLogger", referenced from:
      _OBJC_METACLASS_$_FieldServiceLoggerImpl in FieldServiceLoggerImpl.o
  "_OBJC_CLASS_$_SUPSISSubscriptionKey", referenced from:
      _OBJC_CLASS_$_FieldServiceSISSubscriptionKey in FieldServiceSISSubscriptionKey.o
  "_OBJC_METACLASS_$_SUPAbstractDBRBS", referenced from:
      _OBJC_METACLASS_$_FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DB in FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DB.o
  "_OBJC_CLASS_$_SUPDatabaseManagerFactory", referenced from:
      objc-class-ref in FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DB.o
  "_OBJC_CLASS_$_SUPLocalEntityDelegate", referenced from:
      objc-class-ref in FieldServiceLocalKeyGenerator.o
      objc-class-ref in FieldServiceOfflineAuthentication.o
      objc-class-ref in FieldServiceOperationReplay.o
  "_OBJC_METACLASS_$_SUPAbstractPersonalizationParameters", referenced from:
      _OBJC_METACLASS_$_FieldServicePersonalizationParameters in FieldServicePersonalizationParameters.o
  "_OBJC_IVAR_$_SUPAbstractDBRBS._messageListenerMap", referenced from:
      -[FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DB defineMessageListenerForEntity:withClass:] in FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DB.o
  "_OBJC_METACLASS_$_SUPAbstractLocalEntity", referenced from:
      _OBJC_METACLASS_$_FieldServiceOfflineAuthentication in FieldServiceOfflineAuthentication.o
  "_OBJC_CLASS_$_SUPLoginCredentials", referenced from:
      objc-class-ref in ConnectionController.o
  "_OBJC_CLASS_$_MAChartView", referenced from:
      objc-class-ref in AnalysisViewController.o
      objc-class-ref in DataGridViewController.o
  "_OBJC_CLASS_$_SUPParameterMetaData", referenced from:
      objc-class-ref in FieldServiceAssign_ServiceEngineerMetaData.o
      objc-class-ref in FieldServiceChangeLogImplMetaData.o
      objc-class-ref in FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DBMetaData.o
      objc-class-ref in FieldServiceCustomer_InstallationsMetaData.o
      objc-class-ref in FieldServiceCustomer_InstalledBasesMetaData.o
      objc-class-ref in FieldServiceCustomersMetaData.o
      objc-class-ref in FieldServiceImage_CaptureMetaData.o
      ...
  "_OBJC_CLASS_$_SUPStringUtil", referenced from:
      objc-class-ref in FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DB.o
  "_OBJC_METACLASS_$_SUPDatabaseMetaDataRBS", referenced from:
      _OBJC_METACLASS_$_FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DBMetaData in FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DBMetaData.o
  "_OBJC_CLASS_$_MAViewController", referenced from:
      _OBJC_CLASS_$_AnalysisViewController in AnalysisViewController.o
      _OBJC_CLASS_$_DataGridViewController in DataGridViewController.o
  "_OBJC_METACLASS_$_SUPEntityMetaDataRBS", referenced from:
      _OBJC_METACLASS_$_FieldServiceAssign_ServiceEngineerMetaData in FieldServiceAssign_ServiceEngineerMetaData.o
      _OBJC_METACLASS_$_FieldServiceChangeLogImplMetaData in FieldServiceChangeLogImplMetaData.o
      _OBJC_METACLASS_$_FieldServiceCustomer_InstallationsMetaData in FieldServiceCustomer_InstallationsMetaData.o
      _OBJC_METACLASS_$_FieldServiceCustomer_InstalledBasesMetaData in FieldServiceCustomer_InstalledBasesMetaData.o
      _OBJC_METACLASS_$_FieldServiceCustomersMetaData in FieldServiceCustomersMetaData.o
      _OBJC_METACLASS_$_FieldServiceImage_CaptureMetaData in FieldServiceImage_CaptureMetaData.o
      _OBJC_METACLASS_$_FieldServiceImage_RetrieveMetaData in FieldServiceImage_RetrieveMetaData.o
      ...
  "_OBJC_CLASS_$_SUPLocalKeyGenerator", referenced from:
      objc-class-ref in FieldServiceLocalKeyGenerator.o
      _OBJC_CLASS_$_FieldServiceLocalKeyGenerator in FieldServiceLocalKeyGenerator.o
  "_OBJC_CLASS_$_SUPStringList", referenced from:
      objc-class-ref in FieldServiceAssign_ServiceEngineer.o
      objc-class-ref in FieldServiceCustomer_Installations.o
      objc-class-ref in FieldServiceCustomer_InstalledBases.o
      objc-class-ref in FieldServiceCustomers.o
      objc-class-ref in FieldServiceImage_Capture.o
      objc-class-ref in FieldServiceImage_Retrieve.o
      objc-class-ref in FieldServiceImages.o
      ...
  "_OBJC_IVAR_$_SUPAbstractDBRBS._concreteSubclass", referenced from:
      -[FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DB initWithName:] in FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DB.o
  "_OBJC_METACLASS_$_SUPAbstractEntityRBS", referenced from:
      _OBJC_METACLASS_$_FieldServiceAssign_ServiceEngineer in FieldServiceAssign_ServiceEngineer.o
      _OBJC_METACLASS_$_FieldServiceChangeLogImpl in FieldServiceChangeLogImpl.o
      _OBJC_METACLASS_$_FieldServiceCustomer_Installations in FieldServiceCustomer_Installations.o
      _OBJC_METACLASS_$_FieldServiceCustomer_InstalledBases in FieldServiceCustomer_InstalledBases.o
      _OBJC_METACLASS_$_FieldServiceCustomers in FieldServiceCustomers.o
      _OBJC_METACLASS_$_FieldServiceImage_Capture in FieldServiceImage_Capture.o
      _OBJC_METACLASS_$_FieldServiceImage_Retrieve in FieldServiceImage_Retrieve.o
      ...
  "_OBJC_METACLASS_$_SUPSISSubscription", referenced from:
      _OBJC_METACLASS_$_FieldServiceSISSubscription in FieldServiceSISSubscription.o
  "_OBJC_CLASS_$_SUPClassMap", referenced from:
      objc-class-ref in FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DBMetaData.o
  "_OBJC_CLASS_$_MBOLogger", referenced from:
      objc-class-ref in CallbackHandler.o
  "_OBJC_CLASS_$_SUPAttributeMap", referenced from:
      objc-class-ref in FieldServiceAssign_ServiceEngineerMetaData.o
      objc-class-ref in FieldServiceChangeLogImplMetaData.o
      objc-class-ref in FieldServiceChangeLogKeyMetaData.o
      objc-class-ref in FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DBMetaData.o
      objc-class-ref in FieldServiceCustomer_InstallationsMetaData.o
      objc-class-ref in FieldServiceCustomer_InstalledBasesMetaData.o
      objc-class-ref in FieldServiceCustomersMetaData.o
      ...
  "_OBJC_CLASS_$_SUPBase64Encoding", referenced from:
      objc-class-ref in FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DB.o
  "_OBJC_CLASS_$_SUPOperationMetaData", referenced from:
      objc-class-ref in FieldServiceAssign_ServiceEngineerMetaData.o
      objc-class-ref in FieldServiceChangeLogImplMetaData.o
      objc-class-ref in FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DBMetaData.o
      objc-class-ref in FieldServiceCustomer_InstallationsMetaData.o
      objc-class-ref in FieldServiceCustomer_InstalledBasesMetaData.o
      objc-class-ref in FieldServiceCustomersMetaData.o
      objc-class-ref in FieldServiceImage_CaptureMetaData.o
      ...
  "_OBJC_IVAR_$_SUPAbstractDBRBS._queueConnection", referenced from:
      -[FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DB queueConnection] in FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DB.o
  "_OBJC_CLASS_$_SUPObjectList", referenced from:
      objc-class-ref in FieldServiceAssign_ServiceEngineer.o
      objc-class-ref in FieldServiceChangeLogImpl.o
      objc-class-ref in FieldServiceCustomer_Installations.o
      objc-class-ref in FieldServiceCustomer_InstalledBases.o
      objc-class-ref in FieldServiceCustomers.o
      objc-class-ref in FieldServiceImage_Capture.o
      objc-class-ref in FieldServiceImage_Retrieve.o
      ...
  "_OBJC_CLASS_$_SUPApplication", referenced from:
      objc-class-ref in ConnectionController.o
  "_OBJC_CLASS_$_SUPAttributeMetaDataRBS", referenced from:
      objc-class-ref in FieldServiceAssign_ServiceEngineerMetaData.o
      objc-class-ref in FieldServiceChangeLogImplMetaData.o
      objc-class-ref in FieldServiceChangeLogKeyMetaData.o
      objc-class-ref in FieldServiceCustomer_InstallationsMetaData.o
      objc-class-ref in FieldServiceCustomer_InstalledBasesMetaData.o
      objc-class-ref in FieldServiceCustomersMetaData.o
      objc-class-ref in FieldServiceImage_CaptureMetaData.o
      ...
  "_OBJC_CLASS_$_SUPOperationMap", referenced from:
      objc-class-ref in FieldServiceAssign_ServiceEngineerMetaData.o
      objc-class-ref in FieldServiceChangeLogImplMetaData.o
      objc-class-ref in FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DBMetaData.o
      objc-class-ref in FieldServiceCustomer_InstallationsMetaData.o
      objc-class-ref in FieldServiceCustomer_InstalledBasesMetaData.o
      objc-class-ref in FieldServiceCustomersMetaData.o
      objc-class-ref in FieldServiceImage_CaptureMetaData.o
      ...
  "_OBJC_CLASS_$_SUPAbstractROEntity", referenced from:
      _OBJC_CLASS_$_FieldServiceOperationReplay in FieldServiceOperationReplay.o
  "_OBJC_CLASS_$_SUPAbstractPersonalizationParameters", referenced from:
      _OBJC_CLASS_$_FieldServicePersonalizationParameters in FieldServicePersonalizationParameters.o
  "_OBJC_METACLASS_$_SUPAbstractStructure", referenced from:
      _OBJC_METACLASS_$_FieldServiceChangeLogKey in FieldServiceChangeLogKey.o
      _OBJC_METACLASS_$_FieldServiceKeyGeneratorPK in FieldServiceKeyGeneratorPK.o
      _OBJC_METACLASS_$_FieldServiceKeyPackageName in FieldServiceKeyPackageName.o
      _OBJC_METACLASS_$_FieldServiceLocalKeyGeneratorPK in FieldServiceLocalKeyGeneratorPK.o
  "_OBJC_CLASS_$_SUPIndexMetaData", referenced from:
      objc-class-ref in FieldServiceAssign_ServiceEngineerMetaData.o
      objc-class-ref in FieldServiceCustomer_InstallationsMetaData.o
      objc-class-ref in FieldServiceCustomer_InstalledBasesMetaData.o
      objc-class-ref in FieldServiceCustomersMetaData.o
      objc-class-ref in FieldServiceImagesMetaData.o
      objc-class-ref in FieldServiceInstalledBase_AddressMetaData.o
      objc-class-ref in FieldServiceInstalledBase_ComponentsMetaData.o
      ...
  "_OBJC_CLASS_$_SUPEntityMessageListener", referenced from:
      objc-class-ref in FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DB.o
  "_OBJC_METACLASS_$_SUPSISSubscriptionKey", referenced from:
      _OBJC_METACLASS_$_FieldServiceSISSubscriptionKey in FieldServiceSISSubscriptionKey.o
  "_OBJC_METACLASS_$_MAViewController", referenced from:
      _OBJC_METACLASS_$_AnalysisViewController in AnalysisViewController.o
      _OBJC_METACLASS_$_DataGridViewController in DataGridViewController.o
  "_OBJC_CLASS_$_SUPAbstractLogger", referenced from:
      _OBJC_CLASS_$_FieldServiceLoggerImpl in FieldServiceLoggerImpl.o
  "_SUPDatabaseManager_UltraLite", referenced from:
      -[FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DB initWithName:] in FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DB.o
  "_OBJC_CLASS_$_SUPEntityMetaDataRBS", referenced from:
      _OBJC_CLASS_$_FieldServiceAssign_ServiceEngineerMetaData in FieldServiceAssign_ServiceEngineerMetaData.o
      _OBJC_CLASS_$_FieldServiceChangeLogImplMetaData in FieldServiceChangeLogImplMetaData.o
      _OBJC_CLASS_$_FieldServiceCustomer_InstallationsMetaData in FieldServiceCustomer_InstallationsMetaData.o
      _OBJC_CLASS_$_FieldServiceCustomer_InstalledBasesMetaData in FieldServiceCustomer_InstalledBasesMetaData.o
      _OBJC_CLASS_$_FieldServiceCustomersMetaData in FieldServiceCustomersMetaData.o
      _OBJC_CLASS_$_FieldServiceImage_CaptureMetaData in FieldServiceImage_CaptureMetaData.o
      _OBJC_CLASS_$_FieldServiceImage_RetrieveMetaData in FieldServiceImage_RetrieveMetaData.o
      ...
  "_OBJC_CLASS_$_SUPPersistenceException", referenced from:
      objc-class-ref in FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DB.o
  "_OBJC_CLASS_$_SUPAbstractDBRBS", referenced from:
      _OBJC_CLASS_$_FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DB in FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DB.o
  "_OBJC_IVAR_$_SUPAbstractPersonalizationParameters.clientPersonalizationTableName", referenced from:
      -[FieldServicePersonalizationParameters init] in FieldServicePersonalizationParameters.o
  "_OBJC_CLASS_$_SUPJsonObject", referenced from:
      objc-class-ref in FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DB.o
  "_OBJC_CLASS_$_SUPAbstractEntityRBS", referenced from:
      _OBJC_CLASS_$_FieldServiceAssign_ServiceEngineer in FieldServiceAssign_ServiceEngineer.o
      _OBJC_CLASS_$_FieldServiceChangeLogImpl in FieldServiceChangeLogImpl.o
      _OBJC_CLASS_$_FieldServiceCustomer_Installations in FieldServiceCustomer_Installations.o
      _OBJC_CLASS_$_FieldServiceCustomer_InstalledBases in FieldServiceCustomer_InstalledBases.o
      _OBJC_CLASS_$_FieldServiceCustomers in FieldServiceCustomers.o
      _OBJC_CLASS_$_FieldServiceImage_Capture in FieldServiceImage_Capture.o
      _OBJC_CLASS_$_FieldServiceImage_Retrieve in FieldServiceImage_Retrieve.o
      ...
  "_OBJC_CLASS_$_SUPSISSubscription", referenced from:
      _OBJC_CLASS_$_FieldServiceSISSubscription in FieldServiceSISSubscription.o
  "_OBJC_CLASS_$_SUPClassMetaDataRBS", referenced from:
      _OBJC_CLASS_$_FieldServiceChangeLogKeyMetaData in FieldServiceChangeLogKeyMetaData.o
      _OBJC_CLASS_$_FieldServiceKeyGeneratorPKMetaData in FieldServiceKeyGeneratorPKMetaData.o
      _OBJC_CLASS_$_FieldServiceKeyPackageNameMetaData in FieldServiceKeyPackageNameMetaData.o
      _OBJC_CLASS_$_FieldServiceLocalKeyGeneratorPKMetaData in FieldServiceLocalKeyGeneratorPKMetaData.o
      _OBJC_CLASS_$_FieldServicePersonalizationParametersMetaData in FieldServicePersonalizationParametersMetaData.o
      _OBJC_CLASS_$_FieldServiceSISSubscriptionKeyMetaData in FieldServiceSISSubscriptionKeyMetaData.o
  "_OBJC_METACLASS_$_SUPAbstractROEntity", referenced from:
      _OBJC_METACLASS_$_FieldServiceOperationReplay in FieldServiceOperationReplay.o
  "_OBJC_METACLASS_$_SUPDefaultCallbackHandler", referenced from:
      _OBJC_METACLASS_$_CallbackHandler in CallbackHandler.o
  "_OBJC_CLASS_$_SUPEntityDelegate", referenced from:
      objc-class-ref in FieldServiceAssign_ServiceEngineer.o
      objc-class-ref in FieldServiceChangeLogImpl.o
      objc-class-ref in FieldServiceCustomer_Installations.o
      objc-class-ref in FieldServiceCustomer_InstalledBases.o
      objc-class-ref in FieldServiceCustomers.o
      objc-class-ref in FieldServiceImage_Capture.o
      objc-class-ref in FieldServiceImage_Retrieve.o
      ...
  "_OBJC_CLASS_$_SUPQueueConnectionImpl", referenced from:
      objc-class-ref in FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DB.o
  "_OBJC_CLASS_$_SUPAbstractLocalEntity", referenced from:
      _OBJC_CLASS_$_FieldServiceOfflineAuthentication in FieldServiceOfflineAuthentication.o
  "_OBJC_CLASS_$_MAKitTheme_WelterWeight", referenced from:
      objc-class-ref in AnalysisViewController.o
      objc-class-ref in DataGridViewController.o
  "_OBJC_CLASS_$_SUPQuery", referenced from:
      objc-class-ref in FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DB.o
  "_OBJC_METACLASS_$_SUPLocalKeyGenerator", referenced from:
      _OBJC_METACLASS_$_FieldServiceLocalKeyGenerator in FieldServiceLocalKeyGenerator.o
  "_OBJC_CLASS_$_SUPEntityMap", referenced from:
      objc-class-ref in FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DBMetaData.o
  "_OBJC_CLASS_$_SUPDatabaseDelegate", referenced from:
      objc-class-ref in FieldServiceCom_igate_Reshma_fieldservice_ALL_v6DB.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
4

2 回答 2

0

您可能没有正确链接项目中的 SUP 库。

项目 -> 目标 -> 构建阶段 -> 将二进制文件与库链接

libAfariaSLL.a
libclientrt.a
libDatavault.a
libMO.a
libsupcore.a
libSUPObj.a
libsupUltralite.a

(这些是 SUP 2.1.3 的库,不同的版本可能意味着不同的库)。

还要检查这些库是否在您的搜索路径中(我的 .xcworkspace 的根目录中有这些库)

项目 -> 目标 -> 构建设置 -> 搜索路径 -> 库搜索路径

"$(SRCROOT)/../libraries/RBS/Libraries/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)"
于 2013-01-29T13:33:34.527 回答
0

问题为我解决了。我所做的是使用 Debug-iPhoneOS 中的 .a 文件创建了一个新项目,并正确进行了代码签名。还根据临时证书详细信息更改了捆绑标识符名称。它对我有用。

于 2013-03-05T11:20:11.973 回答