MobileVLCKit for iOS fails to build - ios

i am following the instructions in https://wiki.videolan.org/VLCKit/ to build a MobileVLCKit.framework for my project. because i have to make minor tweaks to source, i cannot use a ready made build.
i run sudo ./buildMobileVLCKit.sh -vd
and am stuck at
The following build commands failed:
Libtool build/MobileVLCKit.build/Debug-iphoneos/MobileVLCKit.build/Objects-normal/armv7s/libMobileVLCKit.a normal armv7s
Libtool build/MobileVLCKit.build/Debug-iphoneos/MobileVLCKit.build/Objects-normal/arm64/libMobileVLCKit.a normal arm64
Libtool build/MobileVLCKit.build/Debug-iphoneos/MobileVLCKit.build/Objects-normal/armv7/libMobileVLCKit.a normal armv7
(3 failures)
more debug info..
Libtool build/MobileVLCKit.build/Debug-iphoneos/MobileVLCKit.build/Objects-normal/armv7/libMobileVLCKit.a normal armv7
cd /Users/me/VLCKit
export IPHONEOS_DEPLOYMENT_TARGET=6.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/opt/local/bin:/opt/local/sbin:/opt/iOSOpenDev/bin:/Users/me/.rvm/gems/ruby-2.0.0-p0/bin:/Users/me/.rvm/gems/ruby-2.0.0-p0#global/bin:/Users/me/.rvm/rubies/ruby-2.0.0-p0/bin:/Users/me/.rvm/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/libexec/git-core/"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only armv7 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -L/Users/me/VLCKit/build/Debug-iphoneos -filelist /Users/me/VLCKit/build/MobileVLCKit.build/Debug-iphoneos/MobileVLCKit.build/Objects-normal/armv7/MobileVLCKit.LinkFileList -ObjC /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libass.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libavutil.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libavcodec.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libavformat.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libswscale.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libgsm.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libdvbpsi.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libFLAC.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libfribidi.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libfreetype.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libgcrypt.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libgpg-error.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libharfbuzz.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libUsageEnvironment.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libBasicUsageEnvironment.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libgroupsock.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libz.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libliveMedia.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libebml.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libmatroska.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libmodplug.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libogg.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libtheora.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libtheoradec.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libtheoraenc.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libopus.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libpng.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libopenjpeg.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libspeex.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libspeexdsp.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libtag.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libtag_c.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libxml2.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libz.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libzvbi.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/lib/vlc/libcompat.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/lib/libvlc.a /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/lib/libvlccore.a -framework Foundation -o /Users/me/VLCKit/build/MobileVLCKit.build/Debug-iphoneos/MobileVLCKit.build/Objects-normal/armv7/libMobileVLCKit.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: -dynamic not specified the following flags are invalid: -ObjC
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libass.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libavutil.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libavcodec.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libavformat.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libswscale.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libgsm.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libdvbpsi.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libFLAC.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libfribidi.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libfreetype.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libgcrypt.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libgpg-error.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libharfbuzz.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libUsageEnvironment.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libBasicUsageEnvironment.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libgroupsock.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libz.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libliveMedia.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libebml.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libmatroska.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libmodplug.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libogg.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libtheora.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libtheoradec.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libtheoraenc.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libopus.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libpng.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libopenjpeg.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libspeex.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libspeexdsp.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libtag.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libtag_c.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libxml2.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libz.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/contribs/lib/libzvbi.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/lib/vlc/libcompat.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/lib/libvlc.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: /Users/me/VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS/armv7/lib/libvlccore.a (No such file or directory)
an inspection confirms that i do not have this directory at all VLCKit/MobileVLCKit/ImportedSources/vlc/install-ios-OS
why?
my environment: mavericks, xcode 5.1, ios SDK 7.1

Related

Apple Mach-O Librarian (libtool) Error

I am running a React-Native iOS app and I am getting the following errors when I build within XCode. What could be the issue?
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lBVLinearGradient
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lBVLinearGradient is not an object file (not allowed in a library)
The issue is that the linker can't locate the library:
libBVLinearGradient
You follow the readme, all steps? You did the step 2, 3 and 4
correctly? After you import in Xcode project the file
libBVLinearGradient.a is in Products folder.
↳ https://github.com/react-native-community/react-native-linear-gradient/issues/20

xcodebuild -target -xcconfig doesn't work for react-native project

When I am running the command xcodebuild -target targetName -xcconfig configName.xcconfig I have the following errors:
clang: error: no such file or directory: '/Users/azghibarta/Documents/WorkFolder/ReactNativeApps/eezam/node_modules/react-native/React/build/Release-iphoneos/libReact.a'
clang: error: no such file or directory: '/Users/azghibarta/Documents/WorkFolder/ReactNativeApps/eezam/node_modules/react-native/Libraries/ActionSheetIOS/build/Release-iphoneos/libRCTActionSheet.a'
clang: error: no such file or directory: '/Users/azghibarta/Documents/WorkFolder/ReactNativeApps/eezam/node_modules/react-native/Libraries/Geolocation/build/Release-iphoneos/libRCTGeolocation.a'
clang: error: no such file or directory: '/Users/azghibarta/Documents/WorkFolder/ReactNativeApps/eezam/node_modules/react-native/Libraries/Image/build/Release-iphoneos/libRCTImage.a'
clang: error: no such file or directory: '/Users/azghibarta/Documents/WorkFolder/ReactNativeApps/eezam/node_modules/react-native/Libraries/LinkingIOS/build/Release-iphoneos/libRCTLinking.a'
clang: error: no such file or directory: '/Users/azghibarta/Documents/WorkFolder/ReactNativeApps/eezam/node_modules/react-native/Libraries/Network/build/Release-iphoneos/libRCTNetwork.a'
clang: error: no such file or directory: '/Users/azghibarta/Documents/WorkFolder/ReactNativeApps/eezam/node_modules/react-native/Libraries/Settings/build/Release-iphoneos/libRCTSettings.a'
clang: error: no such file or directory: '/Users/azghibarta/Documents/WorkFolder/ReactNativeApps/eezam/node_modules/react-native/Libraries/Text/build/Release-iphoneos/libRCTText.a'
clang: error: no such file or directory: '/Users/azghibarta/Documents/WorkFolder/ReactNativeApps/eezam/node_modules/react-native/Libraries/Vibration/build/Release-iphoneos/libRCTVibration.a'
clang: error: no such file or directory: '/Users/azghibarta/Documents/WorkFolder/ReactNativeApps/eezam/node_modules/react-native/Libraries/WebSocket/build/Release-iphoneos/libRCTWebSocket.a'
When I am running the command xcodebuild -schema schemaName all is working fine.
Finally .. I need to change the config schema for the build (dev / prod etc) as Jenkins job, and that it's possible only with the first command that gives error. I know about Xcode Plugin for Jenkins, but I want to use my own build script.

Libtool: can't locate file for: -lPods-RCTMapboxGL

There is a problem at the linking stage of my React Native project. The library libRCTMapboxGL.a is causing this problem.
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lPods-RCTMapboxGL
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lPods-RCTMapboxGL is not an object file (not allowed in a library)
The file libRCTMapboxGL.a is not being created in /Users/user/Developer/RNProject/ios/build/Build/Products/Debug-iphonesimulator/ as consequence of the error with -lPods-RCTMapboxGL. However, the files seem to exist:
/Users/user/Developer/RNProject/node_modules/react-native-mapbox-gl/ios/Pods/Target Support Files/Pods-RCTMapboxGL/Pods-RCTMapboxGL.debug.xcconfig
/Users/user/Developer/RNProject/node_modules/react-native-mapbox-gl/ios/Pods/Target Support Files/Pods-RCTMapboxGL/Pods-RCTMapboxGL.release.xcconfig
Pods-RCTMapboxGL is not an object file looks strange in the error message, the content of the files is:
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public"
OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public"
OTHER_LDFLAGS = $(inherited) -ObjC
PODS_BUILD_DIR = $BUILD_DIR
PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
PODS_ROOT = ${SRCROOT}/Pods
The setup was done according this tutorial. Firstly using CocoaPods and then I manually verified if all the settings and files are in place.
Full error log:
Libtool /Users/user/Developer/RNProject/ios/build/Build/Products/Debug-iphonesimulator/libRCTMapboxGL.a normal x86_64
cd /Users/user/Developer/RNProject/node_modules/react-native-mapbox-gl/ios
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.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/libtool -static -arch_only x86_64 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -L/Users/user/Developer/RNProject/ios/build/Build/Products/Debug-iphonesimulator -L/Users/bobby/Downloads/mapbox-gl-ios-0.2.17 -L/Users/user/Developer/RNProject/node_modules/react-native-mapbox-gl/ios/RCTMapboxGL -filelist /Users/user/Developer/RNProject/ios/build/Build/Intermediates/RCTMapboxGL.build/Debug-iphonesimulator/RCTMapboxGL.build/Objects-normal/x86_64/RCTMapboxGL.LinkFileList -lPods-RCTMapboxGL -o /Users/user/Developer/RNProject/ios/build/Build/Products/Debug-iphonesimulator/libRCTMapboxGL.a
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lPods-RCTMapboxGL
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lPods-RCTMapboxGL is not an object file (not allowed in a library)
The problem was that I used pod init inside the MapboxGL directory, which created the extra files. Removing the generated files solved the problem.

Static lib with CocoaPods dependencies

I'm following this tutorial in order to create an iOS framework (in order to support older than iOS8).
It all went just fine.
The problem started when I made a step forward and tried to use 'Cocoapods' to get 3rd party libs which my framework is depended on.
When trying to build the aggregate target, I get the following error:
Libtool /Users/me/Library/Developer/Xcode/DerivedData/testFrameworkJverkoey-etqkesvvsfnndbdcydkphdythnve/Build/Products/Debug-iphoneos/libmyFramework.a normal armv7
cd /Users/me/Dev/testFrameworkJverkoey
export IPHONEOS_DEPLOYMENT_TARGET=8.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Tools:/Users/me/.rvm/gems/ruby-2.1.1/bin:/Users/me/.rvm/gems/ruby-2.1.1#global/bin:/Users/me/.rvm/rubies/ruby-2.1.1/bin:/Users/me/.rvm/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/Library/PostgreSQL/9.2/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/CrossPack-AVR/bin:/usr/bin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only armv7 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -L/Users/me/Library/Developer/Xcode/DerivedData/testFrameworkJverkoey-etqkesvvsfnndbdcydkphdythnve/Build/Products/Debug-iphoneos -filelist /Users/me/Library/Developer/Xcode/DerivedData/testFrameworkJverkoey-etqkesvvsfnndbdcydkphdythnve/Build/Intermediates/testFrameworkJverkoey.build/Debug-iphoneos/myFramework.build/Objects-normal/armv7/myFramework.LinkFileList -ObjC -ObjC -lPods-AFNetworking -lPods-RestKit -lPods-SOCKit -lPods-TransitionKit -framework CFNetwork -framework CoreData -framework CoreGraphics -framework MobileCoreServices -framework Security -framework SystemConfiguration -lPods -o /Users/me/Library/Developer/Xcode/DerivedData/testFrameworkJverkoey-etqkesvvsfnndbdcydkphdythnve/Build/Products/Debug-iphoneos/libmyFramework.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: -dynamic not specified the following flags are invalid: -ObjC -ObjC
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lPods-AFNetworking
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lPods-AFNetworking is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lPods-RestKit
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lPods-RestKit is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lPods-SOCKit
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lPods-SOCKit is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lPods-TransitionKit
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lPods-TransitionKit is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lPods
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lPods is not an object file (not allowed in a library)
** BUILD FAILED **
The following build commands failed:
Libtool /Users/me/Library/Developer/Xcode/DerivedData/testFrameworkJverkoey-etqkesvvsfnndbdcydkphdythnve/Build/Products/Debug-iphoneos/libmyFramework.a normal armv7
(1 failure)

Error libtool: can't locate file for: -lwebp when I compile a cocos2dx project

I am getting an error libtool: can't locate file for: -lwebp when I compile a cocos2dx project
I have tried adding this library from $(SRCROOT)/../../cocos2dx/platform/third_party/ios/libraries
Also added path in Header search path but the error is not resolved
Full error trace:
/Applications/Xcode
2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:
can't locate file for: -lwebp /Applications/Xcode
2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:
file: -lwebp is not an object file (not allowed in a library) Command
/Applications/Xcode
2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
failed with exit code 1
Any help is appreciated

Resources