将多工程项目改为组件化开发,使用podspec本地化管理出现的问题 (解决中...持续更新)

admxjx 2020-11-23 640

---------------------------------------------------附件为修改后的目录 ---------------------------------------------------------

---------------------------------------------------目的 ---------------------------------------------------------

1.  出于库管理更加便捷考虑 使用cocoapods管理第三方库。(PS: 打包时提示库文件不管理 )

 2.  解决打包时提示cocoapods库找不到问题 , 和每次都需要清除缓存问题。 将项目改为podspec本地组件化管理 。

---------------------------------------------------出现的问题 ---------------------------------------------------------

Undefined symbols for architecture armv7:

  "_kMessageReaded", referenced from:

      -[WFCUMessageListViewController viewDidLoad] in libWFChatUIKit.a(WFCUMessageListViewController.o)

  "_kCallStateUpdated", referenced from:

      -[WFCUMessageListViewController viewDidLoad] in libWFChatUIKit.a(WFCUMessageListViewController.o)

  "_kSendingMessageStatusUpdated", referenced from:

      -[WFCUConversationTableViewController viewDidLoad] in libWFChatUIKit.a(WFCUConversationTableViewController.o)

      -[WFCUMessageCell setModel:] in libWFChatUIKit.a(WFCUMessageCell.o)

      -[WFCUMessageListViewController viewDidLoad] in libWFChatUIKit.a(WFCUMessageListViewController.o)

  "_kRecallMessages", referenced from:

      -[WFCUConversationTableViewController viewWillAppear:] in libWFChatUIKit.a(WFCUConversationTableViewController.o)

      -[WFCUMessageListViewController viewDidLoad] in libWFChatUIKit.a(WFCUMessageListViewController.o)

  "_kDeleteMessages", referenced from:

      -[WFCUConversationTableViewController viewWillAppear:] in libWFChatUIKit.a(WFCUConversationTableViewController.o)

      -[WFCUMessageListViewController viewDidLoad] in libWFChatUIKit.a(WFCUMessageListViewController.o)

  "_kFriendListUpdated", referenced from:

      -[WFCUContactListViewController viewDidLoad] in libWFChatUIKit.a(WFCUContactListViewController.o)

  "_kConnectionStatusChanged", referenced from:

      -[WFCUConversationTableViewController viewWillAppear:] in libWFChatUIKit.a(WFCUConversationTableViewController.o)

  "_kChannelInfoUpdated", referenced from:

      -[WFCUConversationTableViewController viewDidLoad] in libWFChatUIKit.a(WFCUConversationTableViewController.o)

      -[WFCUFavChannelTableViewController viewDidLoad] in libWFChatUIKit.a(WFCUFavChannelTableViewController.o)

      -[WFCUMessageListViewController viewDidLoad] in libWFChatUIKit.a(WFCUMessageListViewController.o)

  "_OBJCCLASS$__TtC14ZLPhotoBrowser14ZLCustomCamera", referenced from:

      objc-class-ref in libWFChatUIKit.a(WFCUChatInputBar.o)

  "_OBJCCLASS$__TtC14ZLPhotoBrowser20ZLPhotoConfiguration", referenced from:

      objc-class-ref in libWFChatUIKit.a(WFCUChatInputBar.o)

  "_kSettingUpdated", referenced from:

      -[WFCUConversationTableViewController viewWillAppear:] in libWFChatUIKit.a(WFCUConversationTableViewController.o)

      -[WFCUFavChannelTableViewController viewDidLoad] in libWFChatUIKit.a(WFCUFavChannelTableViewController.o)

      -[WFCUMessageListViewController viewDidLoad] in libWFChatUIKit.a(WFCUMessageListViewController.o)

  "_kGroupMemberUpdated", referenced from:

      -[GroupMuteTableViewController viewDidLoad] in libWFChatUIKit.a(GroupMuteTableViewController.o)

      -[ManagerTableViewController viewDidLoad] in libWFChatUIKit.a(ManagerTableViewController.o)

      -[WFCUConversationSettingViewController viewDidLoad] in libWFChatUIKit.a(WFCUConversationSettingViewController.o)

      -[WFCUGroupInfoViewController viewDidLoad] in libWFChatUIKit.a(WFCUGroupInfoViewController.o)

      -[WFCUGroupMemberCollectionViewController viewDidLoad] in libWFChatUIKit.a(WFCUGroupMemberCollectionViewController.o)

      -[WFCUMessageListViewController viewDidLoad] in libWFChatUIKit.a(WFCUMessageListViewController.o)

  "_OBJCCLASS$_WFCCNetworkService", referenced from:

      objc-class-ref in WFCLoginViewController.o

      objc-class-ref in AppService.o

      objc-class-ref in WFCMeTableViewController.o

      objc-class-ref in MXLoginVC.o

      objc-class-ref in CreateDeviceViewController.o

      objc-class-ref in MXSettingVC.o

      objc-class-ref in DeviceInfoViewController.o

      ...

  "_encode_amr", referenced from:

      +[WFCCSoundMessageContent soundMessageContentForWav:duration:] in libWFChatClient.a(WFCCSoundMessageContent.o)

  "_kMessageDelivered", referenced from:

      -[WFCUMessageListViewController viewDidLoad] in libWFChatUIKit.a(WFCUMessageListViewController.o)

  "_kFriendRequestUpdated", referenced from:

      -[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o

      -[WFCUContactListViewController setup] in libWFChatUIKit.a(WFCUContactListViewController.o)

      -[WFCUNewFriendTableViewCell refresh] in libWFChatUIKit.a(WFCUNewFriendTableViewCell.o)

  "_OBJCCLASS$_WFAVEngineKit", referenced from:

      objc-class-ref in DiscoverViewController.o

      objc-class-ref in AppDelegate.o

      objc-class-ref in libWFChatUIKit.a(WFCUCallSummaryCell.o)

      objc-class-ref in libWFChatUIKit.a(WFCUChatInputBar.o)

      objc-class-ref in libWFChatUIKit.a(WFCUConferenceViewController.o)

      objc-class-ref in libWFChatUIKit.a(WFCUCreateConferenceViewController.o)

      objc-class-ref in libWFChatUIKit.a(WFCUMessageListViewController.o)

      ...

  "_kGroupInfoUpdated", referenced from:

      -[CreateBarCodeViewController viewDidLoad] in CreateBarCodeViewController.o

      -[GroupManageTableViewController viewDidLoad] in libWFChatUIKit.a(GroupManageTableViewController.o)

      -[WFCUConversationTableViewController viewDidLoad] in libWFChatUIKit.a(WFCUConversationTableViewController.o)

      -[WFCUFavGroupTableViewController refreshList] in libWFChatUIKit.a(WFCUFavGroupTableViewController.o)

      -[WFCUGroupInfoViewController viewDidLoad] in libWFChatUIKit.a(WFCUGroupInfoViewController.o)

      -[WFCUMessageListViewController viewDidLoad] in libWFChatUIKit.a(WFCUMessageListViewController.o)

  "_decode_amr", referenced from:

      -[WFCCSoundMessageContent getWavData] in libWFChatClient.a(WFCCSoundMessageContent.o)

  "_OBJCCLASS$_WFCCIMService", referenced from:

      objc-class-ref in WFCMeTableViewController.o

      objc-class-ref in MXTestFunctionVC.o

      objc-class-ref in DeviceViewController.o

      objc-class-ref in DeviceInfoViewController.o

      objc-class-ref in WFCPrivacyTableViewController.o

      objc-class-ref in ChatroomListViewController.o

      objc-class-ref in PCSessionViewController.o

      ...

  "_kReceiveMessages", referenced from:

      -[DeviceViewController viewDidLoad] in DeviceViewController.o

      -[WFCUConversationTableViewController viewWillAppear:] in libWFChatUIKit.a(WFCUConversationTableViewController.o)

      -[WFCUMessageListViewController viewDidLoad] in libWFChatUIKit.a(WFCUMessageListViewController.o)

  "_OBJCCLASS$__TtC14ZLPhotoBrowser19ZLPhotoPreviewSheet", referenced from:

      objc-class-ref in libWFChatUIKit.a(WFCUChatInputBar.o)

  "_kUserInfoUpdated", referenced from:

      -[WFCMeTableViewController viewDidLoad] in WFCMeTableViewController.o

      -[CreateBarCodeViewController viewDidLoad] in CreateBarCodeViewController.o

      -[WFCUContactListViewController viewDidLoad] in libWFChatUIKit.a(WFCUContactListViewController.o)

      -[WFCUContactTableViewCell setUserId:] in libWFChatUIKit.a(WFCUContactTableViewCell.o)

      -[WFCUConversationTableViewController viewDidLoad] in libWFChatUIKit.a(WFCUConversationTableViewController.o)

      -[WFCUFriendRequestViewController viewDidLoad] in libWFChatUIKit.a(WFCUFriendRequestViewController.o)

      -[WFCUInformationCell setModel:] in libWFChatUIKit.a(WFCUInformationCell.o)

      ...

ld: symbol(s) not found for architecture armv7

clang: error: linker command failed with exit code 1 (use -v to see invocation)

上传的附件:
最新回复 (1)
返回