ios-frameworks

Class X is implemented in both <framework> and <application> one of the two will be used, which one is undefined

蹲街弑〆低调 提交于 2019-11-28 18:28:39
问题 I'm getting this warning: Class X is implemented in both <framework> and <application> one of the two will be used, which one is undefined This warning is covered quite a bit across the web but i haven't found anything that answers the specific problem I'm having. Scenario I've built MyFramework and MyApplication (as a test/demo application for MyFramework). MyFramework uses a CocoaPod (which I'll refer to as CoolPod), which I also want to use in MyApplication (and it is reasonable to assume

How to reference header files in Bridging-Header.h after updating CocoaPods to 0.36.x and above?

喜夏-厌秋 提交于 2019-11-28 18:24:31
问题 After updating to CocoaPods 0.36.x, I am unable to add imports into my Bridging-Header.h file. I get the "DBSphereView.h file not found". The file is indeed present in: "Pods/DBSphereTagCloud/DBSphereView.h" "Headers/public/DBSphereTagCloud/DBSphereView.h" "Headers/private/DBSphereTagCloud/DBSphereView.h" My bridge file: #ifndef Loan_Bridging_Header_h #define Loan_Bridging_Header_h #import "DBSphereView.h" #endif I am able to use Frameworks. I have a reference to a well known Framework

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

天涯浪子 提交于 2019-11-28 15:41:19
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' 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 this. In XCode 7 Beta, with Swift2, it will also happen if your Framework Header is not declared as "Public"

#if canImport() does not find frameworks with CocoaPods

本小妞迷上赌 提交于 2019-11-28 13:41:35
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" additionalSDK.vendored_frameworks =['additionalSDK.framework', 'mainSDK.framework'] end Now, in our mainSDK

How to check if a framework is BITCODE supported for Xcode7

為{幸葍}努か 提交于 2019-11-28 04:10:53
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 have BITCODE support. Is there any tool/command line check? Michael M. Myers From this Apple Developers

Swift Framework build fails for device but not for simulator

混江龙づ霸主 提交于 2019-11-28 02:03:54
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. It sounds like you built the framework for a simulator and not for a device. When the linker is trying to link the application for a device, it doesn't find the framework built

Error “No known class method for selector 'Hello:'” in custom-made framework

五迷三道 提交于 2019-11-27 23:52:09
问题 I am making a framework for a company and I have completed all the code. I'm now trying to package it into a framework. As a test I made a method with this name: -(void)Hello:(NSString *)worldText; When I try to call it in the application with the framework using this code [CompanyMobile Hello:@"World"]; , I'm getting a compiler error which says No known class method for selector 'Hello:' The .m in my framework is as follows: #import "Hello.h" @implementation Hello - (id)init { self = [super

Adding quartzcore to Xcode 4 for iOS

我的未来我决定 提交于 2019-11-27 15:02:23
I have troubles installing quartzcore on Xcode 4 regarding an iOS application. I just can't find the answer: how to do it? Because when I try to add Quartzcore to the targets of the project, it seems I can only add a Mac OS X framework. All you can do about an iOS framework is creating one. foslock In Xcode 4, in the left sidebar, select the project file at the top: 1) Make sure your target is selected in the main view, and you should see 5 tabs at the top, 2) Click the "Build Phases" tab, 3) Click the arrow to the left of the "Link Binary With Libraries" row, 4) Click the plus button that

iOS8 Dynamic Frameworks -> CodeSign error: code signing is required for product type 'Framework' in SDK 'iOS 8.3'

这一生的挚爱 提交于 2019-11-27 14:39:06
问题 I am using the iOS8 Dynamic Frameworks that I build myself and link within my iOS app. It was working fine in the simulator and on device, but when trying to archive a Release build for it, I keep getting this error: Code Sign error: No matching provisioning profiles found: None of the valid provisioning profiles allowed the specified entitlements: com.apple.developer.ubiquity-kvstore-identifier, keychain-access-groups, com.apple.developer.icloud-container-identifiers, com.apple.developer

Adding libxml2 in XCode

时间秒杀一切 提交于 2019-11-27 12:20:15
问题 I have added libxml2 to my Xcode 4 project following this guide. But it's not working. Xcode gives me error saying it no such libxml2 directory. What am I doing wrong? Here's the screenshots of the target settings of my project: Thanks. 回答1: add ${SDKROOT}/usr/include/libxml2 to "Header Search Paths" instead of "User Header Search Paths" under yourtarget -> Build Settings -> Search Paths link with libxml2.dylib in yourtarget -> Build Phases -> Link Binary With Libraries include libxml2