Telerik-Verified-Plugins / Mapbox

Native OpenGL maps for your Cordova app
112 stars 52 forks source link

Cordova build failed for IOS #75

Closed bamboolix closed 7 years ago

bamboolix commented 7 years ago

Hello I'm trying to add Mapbox to a cordova App. My stack is Ionic in a cordova app compiling with XCode 7.

When I add the pluggin :

cordova plugin add https://github.com/Telerik-Verified-Plugins/Mapbox --variable ACCESS_TOKEN=MY_TOKEN

it compiles very well on android

But the build on IOS stops. No build success message.

Once I compile in in Xcode I get an error :


Ld /Users/davidnamboka/Library/Developer/Xcode/DerivedData/keep-in-log-bxcsmfgrmifceueggzbzttxykusu/Build/Products/Debug-iphoneos/KeepInLog.app/KeepInLog normal armv7
    cd /Users/davidnamboka/Documents/keep-in-log/platforms/ios
    export IPHONEOS_DEPLOYMENT_TARGET=7.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -L/Users/davidnamboka/Library/Developer/Xcode/DerivedData/keep-in-log-bxcsmfgrmifceueggzbzttxykusu/Build/Products/Debug-iphoneos -L/Users/davidnamboka/Documents/keep-in-log/platforms/ios/KeepInLog/Plugins/cordova-plugin-mapbox -F/Users/davidnamboka/Library/Developer/Xcode/DerivedData/keep-in-log-bxcsmfgrmifceueggzbzttxykusu/Build/Products/Debug-iphoneos -filelist /Users/davidnamboka/Library/Developer/Xcode/DerivedData/keep-in-log-bxcsmfgrmifceueggzbzttxykusu/Build/Intermediates/keep-in-log.build/Debug-iphoneos/keep-in-log.build/Objects-normal/armv7/KeepInLog.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=7.0 -dead_strip -Xlinker -no_deduplicate -ObjC -fobjc-arc -fobjc-link-runtime /Users/davidnamboka/Library/Developer/Xcode/DerivedData/keep-in-log-bxcsmfgrmifceueggzbzttxykusu/Build/Products/Debug-iphoneos/libCordova.a -weak_framework AddressBook -weak_framework AddressBookUI -weak_framework ImageIO -framework CoreLocation -framework AVFoundation -lMapbox -weak_framework GLKit -weak_framework QuartzCore -weak_framework SystemConfiguration -weak-lc++ -weak-lsqlite3 -weak-lz -Xlinker -dependency_info -Xlinker /Users/davidnamboka/Library/Developer/Xcode/DerivedData/keep-in-log-bxcsmfgrmifceueggzbzttxykusu/Build/Intermediates/keep-in-log.build/Debug-iphoneos/keep-in-log.build/Objects-normal/armv7/KeepInLog_dependency_info.dat -o /Users/davidnamboka/Library/Developer/Xcode/DerivedData/keep-in-log-bxcsmfgrmifceueggzbzttxykusu/Build/Products/Debug-iphoneos/KeepInLog.app/KeepInLog
ld: warning: directory not found for option '-L/Users/davidnamboka/Documents/keep-in-log/platforms/ios/KeepInLog/Plugins/cordova-plugin-mapbox'
ld: library not found for -lMapbox
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Could you give me an solution ?

Regards

bamboolix commented 7 years ago

Issue fixed .. The plugin somehow pointed towards the wrong directory containing the library libMapbox.a