Building for iOS error for the latest version from git.
Posted: 21 May 2013 15:27
If try to build armv7 or simulator version of git there is an error:
To fix it open MobileVLC.xcodeproject in XCode and add CFNetwork.framework.
Hope this helps.
This happens because CFNetwork.framework is not linked in to MobileVLC.xcodeproject2013-05-21 19:06:15.447 xcodebuild[96045:1207] Git fetch output:
2013-05-21 19:06:15.475 xcodebuild[96045:1207] Git reset output: HEAD is now at 6029372 Release 0.6
Undefined symbols for architecture i386:
"_CFNetworkCopySystemProxySettings", referenced from:
_vlc_getProxyUrl in libMobileVLCKit.a(netconf.o)
"_kCFNetworkProxiesHTTPPort", referenced from:
_vlc_getProxyUrl in libMobileVLCKit.a(netconf.o)
"_kCFNetworkProxiesHTTPProxy", referenced from:
_vlc_getProxyUrl in libMobileVLCKit.a(netconf.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
GenerateDSYMFile build/Release-iphonesimulator/VLC.app.dSYM build/Release-iphonesimulator/VLC.app/VLC
cd /Users/adiletabylov/projects/XCode/ios
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/adiletabylov/.rvm/gems/ruby-1.9.3-p327/bin:/Users/adiletabylov/.rvm/gems/ruby-1.9.3-p327@global/bin:/Users/adiletabylov/.rvm/rubies/ruby-1.9.3-p327/bin:/Users/adiletabylov/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin:/usr/local/ant/bin:/Users/adiletabylov/.ec2/bin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /Users/adiletabylov/projects/XCode/ios/build/Release-iphonesimulator/VLC.app/VLC -o /Users/adiletabylov/projects/XCode/ios/build/Release-iphonesimulator/VLC.app.dSYM
error: unable to open executable '/Users/adiletabylov/projects/XCode/ios/build/Release-iphonesimulator/VLC.app/VLC'
Touch build/Release-iphonesimulator/VLC.app
cd /Users/adiletabylov/projects/XCode/ios
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/adiletabylov/.rvm/gems/ruby-1.9.3-p327/bin:/Users/adiletabylov/.rvm/gems/ruby-1.9.3-p327@global/bin:/Users/adiletabylov/.rvm/rubies/ruby-1.9.3-p327/bin:/Users/adiletabylov/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin:/usr/local/ant/bin:/Users/adiletabylov/.ec2/bin"
/usr/bin/touch -c /Users/adiletabylov/projects/XCode/ios/build/Release-iphonesimulator/VLC.app
** BUILD FAILED **
The following build commands failed:
Ld build/Release-iphonesimulator/VLC.app/VLC normal i386
GenerateDSYMFile build/Release-iphonesimulator/VLC.app.dSYM build/Release-iphonesimulator/VLC.app/VLC
(2 failures)
To fix it open MobileVLC.xcodeproject in XCode and add CFNetwork.framework.
Hope this helps.