我正在研究使用第三方开发的自定义框架的cordova插件。当我将其添加到我的plugin.xml文件中时,将使用以下内容:
当我将插件添加到测试项目时,确实确实将框架复制到iOS应用程序的Plugins文件夹中。如果您尝试立即构建,则会出现以下一些错误
/Users/blah/Library/Developer/Xcode/DerivedData/Red5_Cordova_Test-bauvpjaznvvdzugxjrytwrqbjcvn/Build/Intermediates.noindex/Red5_Cordova_Test.build/Debug-iphonesimulator/Red5_Cordova_Test.build/Objects-normal/x86_64/red5pro.o
Red5_Cordova_Test/Plugins/cordova-plugin-red5pro/R5Streaming.framework/R5Streaming(R5Connection.o)
duplicate symbol _R5Protocol in:
/Users/blah/Library/Developer/Xcode/DerivedData/Red5_Cordova_Test-bauvpjaznvvdzugxjrytwrqbjcvn/Build/Intermediates.noindex/Red5_Cordova_Test.build/Debug-iphonesimulator/Red5_Cordova_Test.build/Objects-normal/x86_64/red5pro.o
Red5_Cordova_Test/Plugins/cordova-plugin-red5pro/R5Streaming.framework/R5Streaming(R5Stream.o)
ld: 16 duplicate symbols for architecture arm64
我注意到的是,如果我进入Xcode并删除框架仅供参考,但未删除实际框架,则链接器将自动链接该框架,并且该链接器会很好地构建。我试图弄清楚如何获得它,以便它不会尝试多次链接。
谢谢。