novastone-media / MQTT-Client-Framework

iOS, macOS, tvOS native ObjectiveC MQTT Client Framework
Other
1.84k stars 465 forks source link

How to build this as a arm64 framework for cordova? #500

Closed 1129921824 closed 6 years ago

1129921824 commented 6 years ago

When i use it on cordova , build on iphone not emulator,an error has occurred ld: warning: ignoring file ddd/Plugins/cordova-plugin-fastrde-mqtt/MQTTClient.framework/MQTTClient, file was built for x86_64 which is not the architecture being linked (i386): ddd/Plugins/cordova-plugin-fastrde-mqtt/MQTTClient.framework/MQTTClient Undefined symbols for architecture i386: "_OBJCCLASS$_MQTTSession", referenced from: objc-class-ref in CDVMQTTPlugin.o "_OBJCCLASS$_MQTTSSLSecurityPolicyTransport", referenced from: objc-class-ref in CDVMQTTPlugin.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

it seems build for i386,but i want a framework for arm64?Can u help Me?Thanks a lot.

1129921824 commented 6 years ago

add: build on emlator is work normal

1129921824 commented 6 years ago

closed