[CMake] cmake iOS application + framework link error
Gregor Jasny
gjasny at googlemail.com
Thu Aug 20 07:04:51 EDT 2015
Hi David,
On 04/05/15 20:12, David Hirvonen wrote:
> Thanks for the response. I've moved to a more standard *nix layout for
> all platforms, and will rely on a post-build step to create my framework
> (for now). If I find a fix, I'll be sure to share it here.
>
>
> On Wed, Apr 29, 2015 at 5:22 AM, Eric Wing <ewmailing at gmail.com
> <mailto:ewmailing at gmail.com>> wrote:
>
> On 4/25/15, David Hirvonen <dhirvonen at elucideye.com
> <mailto:dhirvonen at elucideye.com>> wrote:
> > I'm hitting a link error when linking an iOS application with an internally
> > created framework/library using the the CMake Xcode generator and an iOS
> > toolchain. I've put together a minimal CMakeLists.txt example here:
> >
> >https://github.com/headupinclouds/cmake_framework_test/
With the ios-app-bundle-layout topic [1] branch I successfully compiled
your test:
> Touch _builds/ios/Debug-iphoneos/testa.app
> cd /Users/gjasny/src/cmake_framework_test
> export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/gjasny/src/cmake/_build/bin:/Users/gjasny/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin"
> /usr/bin/touch -c /Users/gjasny/src/cmake_framework_test/_builds/ios/Debug-iphoneos/testa.app
>
> ProcessProductPackaging /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk/Entitlements.plist _builds/ios/tf.build/Debug-iphoneos/testa.build/testa.app.xcent
> cd /Users/gjasny/src/cmake_framework_test
> export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/gjasny/src/cmake/_build/bin:/Users/gjasny/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin"
> builtin-productPackagingUtility /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk/Entitlements.plist -entitlements -format xml -o /Users/gjasny/src/cmake_framework_test/_builds/ios/tf.build/Debug-iphoneos/testa.build/testa.app.xcent
>
> CodeSign _builds/ios/Debug-iphoneos/testa.app
> cd /Users/gjasny/src/cmake_framework_test
> export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
> export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/gjasny/src/cmake/_build/bin:/Users/gjasny/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin"
>
> Signing Identity: "iPhone Developer: Gregor Jasny (V73ULL766M)"
> Provisioning Profile: "iOSTeam Provisioning Profile: *"
> (34a9855a-c998-49e6-b12e-91f5fe28079a)
>
> /usr/bin/codesign --force --sign A8CFBE1BA1116F2E590774A39ED25D7E8DFC5344 --entitlements /Users/gjasny/src/cmake_framework_test/_builds/ios/tf.build/Debug-iphoneos/testa.build/testa.app.xcent /Users/gjasny/src/cmake_framework_test/_builds/ios/Debug-iphoneos/testa.app
>
> ** BUILD SUCCEEDED **
>
> library path: _builds/ios/Debug-iphoneos/TF.framework/TF
> _builds/ios/Debug-iphoneos/TF.framework.dSYM/Contents/Resources/DWARF/TF
Thanks,
Gregor
[1]
http://www.cmake.org/gitweb?p=stage/cmake.git;a=shortlog;h=refs/heads/ios-app-bundle-layout
More information about the CMake
mailing list