ios-frameworks

Create a single iOS static library file that includes the framework it depends on

孤街醉人 提交于 2019-12-13 04:34:24
问题 I have a large framework (in my case, opencv2.framework and >300 MB) that my iOS static library depends on. Currently, projects that depend on my static library also need to link the framework. Is it possible to create a single static library that includes the framework in the same .a file? Additionally, can the size of the library be reduced to only contain what it needs so my app is not >300 MB? If it matters, I'm actually going to use this static library in an iOS binding project, so that

podspec with dependency to another ios framework project

点点圈 提交于 2019-12-11 07:59:50
问题 I had developed a swift farmework to share with other developers(Lets name it B). This framework is using another ios framework project that I created recently with objective-c (lets name it A). Now, I want to share framework B with cocoa pod . I wondering how should I link these two project in the podspec file. Does I need to share both of them with pod ? or is there any other solution that just share project B? 回答1: I was having same question when I was trying to create a swift framework

Include an iOS Framework into another one

会有一股神秘感。 提交于 2019-12-11 05:06:04
问题 The problem is that when I create a framework for iOS, that uses a different framework, I have to also include the second framework in my application. What I want to try is to compile the second framework into the new one that uses it. so it's all one package. Is this even possible? If so, how? 回答1: It's possible but strongly recommended against. If two frameworks both include another framework in this manner, you wouldn't be able to use both in the same project as the symbols would conflict.

Can't build/incorporate WebKit framework into iOS project

独自空忆成欢 提交于 2019-12-11 02:38:28
问题 I've downloaded the WebCore source code for iOS 4.3.3 from Apple. Now how do I actually incorporate the WebKit into my iOS project? I'm not asking how to use the WebKit classes. I want to build an iOS app that includes WebKit classes (such as DOM objects), but I don't know how to build the WebKit framework for iOS. Does any know how to build the WebKit framework for iOS? Thanks. 回答1: The WebKit framework is not available in iOS. You only have the UIWebView to work with. This question is a

Method to determine whether a binary contains Bitcode no longer seems to work

狂风中的少年 提交于 2019-12-11 01:06:10
问题 In my search for a method to determine if a iOS binary was build with Bitcode, I found the following post: How to check if a framework is BITCODE supported for Xcode7 Here, the following method was suggested to determine if bitcode is present in a binary: $ otool -l libName.o | grep __LLVM However, I have tried this on several binaries with no success. One of them is a library I know has bitcode since after I changed the flag on its project a build error went away. Another one of them is a

Can't run app on device: iOS 9 frameworks won't codesign

流过昼夜 提交于 2019-12-10 16:16:17
问题 I'm updating an app with deployment target iOS 7 so it can work with iOS 9. Also, I'm adding some cool iOS 8 and 9 features. I've read a lot of article about backwards version compatibility and now that Swift 2.0 makes it easier. The things I've taken care of so far are: Having the Base SDK set at iOS 9 and the deployment target set at version 7 Checking the version at runtime with if #available(iOS 9.0, *) when using the new APIs Linking the only-iOS9 frameworks optionally, as seen here: As

UICollectionView, nib from a framework target registered as a cell fails at runtime

ぐ巨炮叔叔 提交于 2019-12-10 13:07:39
问题 I have a UICollectionViewCell drawn out in a xib and accompanied by swift class file. These two files are part of my app's UI framework target (called SomeUI). In the view controller of my collection view (in the app target) I register the nib as a collection view cell. My view controller code is as follows; import UIKit import SomeUI let reuseIdentifier = "Cell" class ACollectionViewController: UICollectionViewController { override func viewDidLoad() { super.viewDidLoad() self.collectionView

Add third Party Frameworks in a project in iOS

主宰稳场 提交于 2019-12-10 12:35:17
问题 I am trying to use the NinevehGL framework in my iPad app. I've added the framework to my Xcode project. However, when I run my app,it executes successfully. Note: After i installed the NinevehGl.pkg, The NinevehGl framework is shows in the project Template itself. Am selecting this template means automatically it creates some frameworks in Link Binary with Libraries. But my issue is: While am running the same Xcode project in other mac, it crash. Because other mac's am not installed this

Xcode custom framework - No known method error

烈酒焚心 提交于 2019-12-10 12:08:10
问题 I'm making a framework using iOS-Universal-Framework. All has been working well for a few days, but today I decided to change a method signature. Xcode seems to have cached the old version of my library/framework, and I can't get it to see my new code for anything. Although the header it presents has the correct signature, the compiler (and autocomplete) do NOT see the correct signature. I've tried changing the Framework version and Current Library/Compatibility versions of my custom

xcodebuild build action to distribute a dynamic framework with stripped dSYM

强颜欢笑 提交于 2019-12-10 10:10:00
问题 I used to build our dynamic frameworks for internal development using xcodebuild -workspace <workspace_path> build -configuration "Release" now that we are shipping frameworks to 3rd party developers we want to remove symbols from framework binary. I noticed that using build option the binary always contains the symbols, even if the project is configured with: DEBUG_INFORMATION_FORMAT = dwarf-with-dsym STRIP_INSTALLED_PRODUCT = YES STRIP_STYLE = non-global It seems that using archive