0
林 信沂

我在IOS上,使用貴公司的simpleconfig.a靜態庫,想客自化自家產品,但是在測試打包的時候爆出一些問題

以下字串是,使打包的錯誤訊息

看起來是simpleconfig.a無法被打包產生的

因為在貴公司的simpleconfig demo 上打包也會產生 _AsyncUdpSocket的問題

請問是否有什麼解決方案,感謝

Undefined symbols for architecture armv7:

  "_OBJC_METACLASS_$_AsyncUdpSocket", referenced from:

      _OBJC_METACLASS_$_PatternFactory in libLibSimpleConfig.a(SimpleConfig.o)

  "_GCDAsyncSocketManuallyEvaluateTrust", referenced from:

      function signature specialization <Arg[0] = Owned To Guaranteed, Arg[1] = Owned To Guaranteed and Exploded> of smarthome.CocoaMQTT.socket(__ObjC.GCDAsyncSocket, didConnectToHost: Swift.String, port: Swift.UInt16) -> () in CocoaMQTT.o

  "_OBJC_CLASS_$_GCDAsyncSocket", referenced from:

      objc-class-ref in CocoaMQTT.o

  "_OBJC_CLASS_$_AsyncUdpSocket", referenced from:

      objc-class-ref in HomeViewController.o

      _OBJC_CLASS_$_PatternFactory in libLibSimpleConfig.a(SimpleConfig.o)

      objc-class-ref in libLibSimpleConfig.a(SimpleConfig.o)

ld: symbol(s) not found for architecture armv7

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

sean 回答了