cordova - Duplicate Symbols IOS when sharing static Library on sub projects -


i have problem sharing static library xcode sub projects. assuming structure of project this:

main.xcodeproj | |_cordova.xcodeproj | |_subproject1.xcodeproj | |_subproject2.xcodeproj 

i have create static library for:

  • subproject1
  • subproject2

these libraries needs linked cordova static library.

i've done by:

  • open subproject1
  • add cordova static library in "link binary libraries" section

then

  • open subproject2
  • add cordova static library in "link binary libraries" section

after that,

  • opened main.xcodeproj
  • add target depedendency subproject1
  • add target depedendency subproject2
  • add link binary libraries subproject1 static library
  • add link binary libraries subproject2 static library

if build obtain following errors:

duplicate symbol _objc_ivar_$_cdvviewcontroller._commandqueue in:     /users/xxx/library/developer/xcode/deriveddata/appxxx/build/products/debug-iphonesimulator/libsubproject1.a(cdvviewcontroller.o)     /users/xxx/library/developer/xcode/deriveddata/appxxx/build/products/debug-iphonesimulator/libsubproject2.a(cdvviewcontroller.o)  duplicate symbol _objc_ivar_$_cdvviewcontroller._commanddelegate in:     /users/xxx/library/developer/xcode/deriveddata/appxxx/build/products/debug-iphonesimulator/libsubproject1.a(cdvviewcontroller.o)     /users/xxx/library/developer/xcode/deriveddata/appxxx/build/products/debug-iphonesimulator/libsubproject2.a(cdvviewcontroller.o) 

how can share library across these 2 sub projects?

thank much

there's no need link both subprojects cordova, can link main target cordova.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -