ios-universal-framework

Swift universal framework depending on pod

纵饮孤独 提交于 2020-12-01 12:11:18
问题 I'm developing a small Swift framework that depends on Alamofire. I'm using it as an embedded framework of an app belonging to the same workspace and it works perfectly. The problem arises when I want to build an universal framework with an aggregate target. Then, when executing the script to generate the framework it fails with the message No such module 'Alamofire' , referring to an import Alamofire in one of my source files. This is my Podfile: platform :ios, '9.0' use_frameworks! inhibit

How to export “fat” Cocoa Touch Framework (for Simulator and Device)?

北城以北 提交于 2019-12-17 02:52:24
问题 With Xcode 6 we get ability to create own Dynamic Cocoa Frameworks . Because of: Simulator still use 32-bit library beginning June 1, 2015 app updates submitted to the App Store must include 64-bit support and be built with the iOS 8 SDK (developer.apple.com) We have to make fat library to run project on devices and simulators. i.e. support both 32 and 64 bit in Frameworks. But I didn't find any manuals, how to export universal fat Framework for future integration with other projects (and

Has anybody upgraded existing Universal Framework for iOS 8 and Xcode 6

心已入冬 提交于 2019-12-10 10:57:17
问题 There appear to be lots of people having issues since Apple's updates to support Universal Frameworks in their latest release. We have been using Universal Frameworks for quite some time. Of course, the update broke our Universal Frameworks and I have been trying to figure out how to get them to work again. I have looked at a few questions and found this one to be exceptionally helpful. There appears to be some confusion regarding whether scripts are still needed. I found some instructions

confused about different procedures for creating a fat static library in Xcode 6

为君一笑 提交于 2019-12-08 00:33:40
问题 I'm a little confused about information I am finding about how to create a universal framework using the latest Xcode 6 and iOS 8 environment. For instance, this answer includes the following: If you need to create universal static library that runs on both simulator and devices, then general steps are: 1. Build library for simulator 2. Build library for device 3. Combine them using lipo lipo -create -output "framework-test-01-universal" "Debug-iphonesimulator/framework-test-01.framework

Has anybody upgraded existing Universal Framework for iOS 8 and Xcode 6

感情迁移 提交于 2019-12-06 07:13:08
There appear to be lots of people having issues since Apple's updates to support Universal Frameworks in their latest release. We have been using Universal Frameworks for quite some time. Of course, the update broke our Universal Frameworks and I have been trying to figure out how to get them to work again. I have looked at a few questions and found this one to be exceptionally helpful. There appears to be some confusion regarding whether scripts are still needed. I found some instructions here that say the new scripts are python scripts instead of shell scripts. But even with the information

confused about different procedures for creating a fat static library in Xcode 6

Deadly 提交于 2019-12-06 04:26:05
I'm a little confused about information I am finding about how to create a universal framework using the latest Xcode 6 and iOS 8 environment. For instance, this answer includes the following: If you need to create universal static library that runs on both simulator and devices, then general steps are: 1. Build library for simulator 2. Build library for device 3. Combine them using lipo lipo -create -output "framework-test-01-universal" "Debug-iphonesimulator/framework-test-01.framework/framework-test-01" "Debug-iphoneos/framework-test-01.framework/framework-test-01" Note that framework-test

Run script for universal framework on Xcode 10

一曲冷凌霜 提交于 2019-12-05 05:16:41
问题 I Xcode 9.x, I was using the below script which worked fine : ###################### # Options ###################### REVEAL_ARCHIVE_IN_FINDER=false FRAMEWORK_NAME="${PROJECT_NAME}" SIMULATOR_LIBRARY_PATH="${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/${FRAMEWORK_NAME}.framework" DEVICE_LIBRARY_PATH="${BUILD_DIR}/${CONFIGURATION}-iphoneos/${FRAMEWORK_NAME}.framework" UNIVERSAL_LIBRARY_DIR="${BUILD_DIR}/${CONFIGURATION}-iphoneuniversal" FRAMEWORK="${UNIVERSAL_LIBRARY_DIR}/${FRAMEWORK_NAME}

Run script for universal framework on Xcode 10

≯℡__Kan透↙ 提交于 2019-12-03 17:07:57
I Xcode 9.x, I was using the below script which worked fine : ###################### # Options ###################### REVEAL_ARCHIVE_IN_FINDER=false FRAMEWORK_NAME="${PROJECT_NAME}" SIMULATOR_LIBRARY_PATH="${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/${FRAMEWORK_NAME}.framework" DEVICE_LIBRARY_PATH="${BUILD_DIR}/${CONFIGURATION}-iphoneos/${FRAMEWORK_NAME}.framework" UNIVERSAL_LIBRARY_DIR="${BUILD_DIR}/${CONFIGURATION}-iphoneuniversal" FRAMEWORK="${UNIVERSAL_LIBRARY_DIR}/${FRAMEWORK_NAME}.framework" ###################### # Build Frameworks ###################### xcodebuild -project "${PROJECT

Xcode Creating Universal Frameworks as Dependents of a Universal Framework

这一生的挚爱 提交于 2019-11-28 14:35:02
Currently, when I distribute my Universal Framework I have to distribute the Universal Frameworks mine includes in the Build Phases - Link Binary With Libraries. I want to bundle everything up into one tidy Universal Framework, so my users will be able to easily link to my Universal Framework and not need to bother with the others. I am trying to "embed" two other Universal Frameworks into my Universal Framework. I'm following this tutorial here: Developing the Framework as a Dependent Project Here is a picture of my project structure. Notice the two projects under Frameworks: I have added the

Get version number of iOS Universal Framework in client

走远了吗. 提交于 2019-11-28 09:08:38
This is likely not limited to iOS Universal Frameworks but all xxx.framework files. However I can't seem to find documentation on how to get the current version and build of a framework within the client application. Within an app you'd use something like: NSString *name = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"]; NSString *build = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]; NSString *version = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]; That would give you the current information stored