Make "fat" iOS Framework from a pair of dylibs?
Make "fat" iOS Framework from a pair of dylibs?
- Subject: Make "fat" iOS Framework from a pair of dylibs?
- From: Rick Mann <email@hidden>
- Date: Wed, 12 Apr 2017 00:08:30 -0700
I'm trying to use an SDK provided by a third party as a pair of dylibs and a header file. The two dylibs are for iOS and iOS simulator. I want to make these into a fat iOS Framework. I constructed the bundle by hand, and Xcode will link and sign it, but when I go to run in the simulator, it says:
Failed to load Info.plist from bundle at path /Users/rmann/Library/Developer/CoreSimulator/Devices/116F559C-002A-4778-A7FC-F3D613ABEF23/data/Library/Caches/com.apple.mobile.installd.staging/temp.vneuXu/extracted/MyApp.app/Frameworks/MyFramwork.framework
I used a new Xcode project to generate an Info.plist file and I stuck it in my framework, modifying a handful of fields.
Here's the directory listing of my framework:
MyFramework.framework/ (rmann/blk) 00:03$ ls -lR
total 24
lrwxr-xr-x 1 rmann staff 24B Apr 11 18:34 Colibri@ -> Versions/Current/MyFramework
lrwxr-xr-x 1 rmann staff 24B Apr 11 18:34 Headers@ -> Versions/Current/Headers
lrwxr-xr-x 1 rmann staff 26B Apr 11 21:43 Resources@ -> Versions/Current/Resources
drwxr-xr-x 5 rmann staff 170B Apr 11 18:34 Versions/
./Versions:
total 8
drwxr-xr-x 6 rmann staff 204B Apr 12 00:03 A/
lrwxr-xr-x 1 rmann staff 1B Apr 11 18:34 Current@ -> A
./Versions/A:
total 17720
-rwxr-xr-x 1 rmann staff 8.7M Apr 11 18:31 MyFramework*
drwxr-xr-x 4 rmann staff 136B Apr 11 18:35 Headers/
drwxr-xr-x 3 rmann staff 102B Apr 11 21:43 Resources/
./Versions/A/Headers:
total 272
-rwxr-xr-x@ 1 rmann staff 128K Apr 11 18:35 MyFramework.h*
./Versions/A/Resources:
total 8
-rw-r--r--@ 1 rmann staff 725B Apr 11 21:40 Info.plist
And my Info.plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>16E195</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>MyFramework</string>
<key>CFBundleIdentifier</key>
<string>com.latencyzero. MyFramework </string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>MyFramework</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>iPhoneOS</string>
<string>iPhoneSimulator</string>
</array>
<key>CFBundleVersion</key>
<string>1</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>14E269</string>
<key>DTPlatformName</key>
<string>iphoneos</string>
<key>DTPlatformVersion</key>
<string>10.3</string>
<key>DTSDKBuild</key>
<string>14E269</string>
<key>DTSDKName</key>
<string>iphoneos10.3</string>
<key>DTXcode</key>
<string>0831</string>
<key>DTXcodeBuild</key>
<string>8E1000a</string>
<key>MinimumOSVersion</key>
<string>9.3</string>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
<integer>2</integer>
</array>
</dict>
</plist>
I realize something's probably not right in my Info.plist, as it was generated as an iPhone target, not a simulator target.
--
Rick Mann
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden