ios-frameworks

Pod Error in Xcode “Id: framework not found Pods”

≯℡__Kan透↙ 提交于 2019-11-27 11:47:09
I am trying to clone a project from a bitbucket repository and am getting an error Id: framework not found Pods clang: error: linker command failed with exit code 1 (use -v to see invocation) when trying to run an Xcode project in workspace. These are the steps I have followed, if anyone could let me know what I am doing wrong, that would be great! git clone (link to bitbucket) changed the configuration settings in the Xcode pods project to none for both debug and release performed pod install opened Xcode workspace file tried to build in Xcode and received the error Id: framework not found

CocoaPods/Podspec and *.framework

浪尽此生 提交于 2019-11-27 11:28:56
问题 CocoaPods question: I have created a framework bundled with a static library inside, depending on AFNetworking and a resource bundle (based on those two tutorials to create FWKs http://www.blackjaguarstudios.com/blog/programming/2012/11/22/xcode-45-creating-ios-framework-and-hold-my-hand-im-3-years-old and https://github.com/bclubb/iOS-Framework) I'd love to create a podspec so that people just add a line in their Podfile, which would, on pod install, add my framework and the AFNetworking, if

Swift Framework: Umbrella header '[…].h' not found

不打扰是莪最后的温柔 提交于 2019-11-27 09:20:26
问题 In a custom framework containing both Objective-C and Swift code, the Swift compiler throws the following error: [build_path]/unextended-module.modulemap:2:19: error: umbrella header 'bugtest.h' not found umbrella header "bugtest.h" ^ <unknown>:0: error: could not build Objective-C module 'bugtest' 回答1: This usually happens after a project rename or something like that. The problem is that the umbrella header is no longer listed as a Public header. Check the attached image to see how to fix

iOS Static vs Dynamic frameworks clarifications

喜欢而已 提交于 2019-11-27 09:04:10
问题 I have to admit that with the release of iOS 8 I am a bit confused about dynamic and static frameworks in iOS. I am looking for a way to distribute a library that I created, and I need to support iOS 7 and above. (Note: This will be a proprietary framework. I cannot use cocoa pods, and I also cannot distribute the source). Here is what I already know: iOS 8 introduced "embedded frameworks" for iOS, but, as I understand, they do not work for iOS 7, only for iOS 8 and above. I have the option

#if canImport() does not find frameworks with CocoaPods

◇◆丶佛笑我妖孽 提交于 2019-11-27 07:56:31
问题 Hello here is our Podspec which has a default_subspec and an optional subspec (which won't be taken since the default is already set). That subspec has more features, but takes an additional 8MB of size... `s.default_subspec = 'mainSDK' s.subspec 'mainSDK' do |mainSDK| mainSDK.vendored_frameworks = 'mainSDK.framework' mainSDK.source_files = "mainSDK.framework/Headers/*.h" end s.subspec 'additionalSDK' do |additionalSDK| additionalSDK.source_files = "additionalSDK.framework/Headers/*.h"

Swift Framework build fails for device but not for simulator

人走茶凉 提交于 2019-11-27 04:51:03
问题 Any ideas why a build would succeed for simulator but not a device? I created a Cocoa framework and was able to add it to a new single-page application project, and call the methods defined in the framework. The project built as long as I had a simulator selected as the build target and not a device. I have not tried running it, only building. I'm using Swift 3 and XCode 8.1. I get Use of unresolved identifier errors. 回答1: It sounds like you built the framework for a simulator and not for a

How to check if a framework is BITCODE supported for Xcode7

我们两清 提交于 2019-11-27 00:17:42
问题 From Xcode 7 it became one of the common problem that third party frameworks should support Bitcode. We can also disable the BITCODE by setting ENABLE_BITCODE to NO in Build settings. But i do not want to turn it off, instead i want to convert all my frameworks to BITCODE compatible. So how to check if a framework is BITCODE compatible apart from compiling the framework in Xcode. Sometimes Xcode give error for BITCODE compatibility for one framework leaving the others even though they don't

How do I weak link frameworks on Xcode 4?

浪尽此生 提交于 2019-11-26 22:49:13
I need to weak link some framework with my target. But I can't find how to do it... If I try to run my project on 3.2 iPad simulator i get the following error: dyld: Library not loaded: /System/Library/Frameworks/iAd.framework/iAd Reason : Image not found Thanks ! Go to your project -> Targets -> Build Phases -> Link Binary with Libraries. Then change the library you want to weak-link from "Required" to "Optional". ronguotech This doesn't work now. Please follow the link below: https://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPFrameworks/Concepts/WeakLinking.html

Implement PushKit and test in development behavior

允我心安 提交于 2019-11-26 21:47:32
i'd like to implement PushKit service within my app ( Voip app ), but i have following doubt: I see that i can generate only production voip certificate , it works if i try to test voip push notification service on develop device ? This is my implementation test: With this 3 line of code i can get push token on didUpdatePushCredentials callback that i use to save into my server. PKPushRegistry *pushRegistry = [[PKPushRegistry alloc] initWithQueue:dispatch_get_main_queue()]; pushRegistry.delegate = self; pushRegistry.desiredPushTypes = [NSSet setWithObject:PKPushTypeVoIP]; Server side i

Pod Error in Xcode “Id: framework not found Pods”

喜夏-厌秋 提交于 2019-11-26 15:45:24
问题 I am trying to clone a project from a bitbucket repository and am getting an error Id: framework not found Pods clang: error: linker command failed with exit code 1 (use -v to see invocation) when trying to run an Xcode project in workspace. These are the steps I have followed, if anyone could let me know what I am doing wrong, that would be great! git clone (link to bitbucket) changed the configuration settings in the Xcode pods project to none for both debug and release performed pod