Questions tagged [objective-c-framework]
11 questions
4
votes
1 answer
How to get static / relocatable framework name from class name in objective-c
I have a string with the name of a class and I'm trying to get the framework name where the class belongs.
Things that I have tried:
bundleForClass
Class *myClass = NSClassFromString(@"ClassName");
[NSBundle bundleForClass:myClass];
But I can't…

702
- 41
- 1
1
vote
0 answers
How can I include/bundle other Swift Package dependencies in a Swift Package that only contains binaryTargets (XCFrameworks)?
I am creating Swift Packages from various Objective-C Frameworks (via use of XCFrameworks).
I successfully created the SPs, but have run into an issue when it comes to the other SP dependencies it relies on.
If I only add the WrapperPackage to my…

JimmyJammed
- 9,598
- 19
- 79
- 146
1
vote
2 answers
Using an Objective C framework, which is inside a Swift framework, in a Xamarin iOS project
I have a Objective C framework. (This framework is working properly with a Swift project)
Then I have a Swift framework. This framework has used the previously mentioned Objective C framework. (This Swift framework also working in a Swift…

AnujAroshA
- 4,623
- 8
- 56
- 99
1
vote
1 answer
Objective C pods in Swift Project - right bridging headers?
I am trying to add SocketClusteriOS (https://github.com/abpopov/SocketCluster-ios-client) pod written in Objective C to Swift project. I've tested the this pod in Objective C project, url seems working fine, but when I am trying to add it to Swift…
user7644872
1
vote
1 answer
IOS Module not found error when adding Objective-C framework projects using CocoaPods as a module in Swift project
I have scenario where i have couple of SDKs and a test app. Here is the example.
SDKCore - “Objective-C Framework”
SDKUI - “Objective-C Framework”
SDKCore is added as a dependency using Cocoapods pod 'SDKCore', :path => '../SDKCore' and with flag…

Bilal
- 18,478
- 8
- 57
- 72
0
votes
0 answers
Preprocessor ifdef does not hide the code blocks in an Objective C framework
I am working on an Objective C framework and we want to hide some debug related methods in our release version. I thought using #ifdef DEBUG can easily server for that purpose, so put the debug related method in a #ifdef block:
#ifdef…

Hooman Malek
- 499
- 3
- 11
0
votes
0 answers
Could not build Objective C framework in Swift Project
I created a Objective C framework which i want to use in Swift Project. I want to expose only one header file in the framework.Following is my header file
//
// VideoPlayer.h
// DRMFrameworkObjc
//
// Created by Next on 01/08/17.
// Copyright ©…

Bharath Reddy
- 636
- 1
- 5
- 21
0
votes
1 answer
Core data in framework shows only one entity
I'm trying to make my first framework for iOS.
I have core data in it, in my xcdatamodel I have two entites, I auto generated classes for both models, but when I print [[managedObjectModel entities] valueForKey:@"name"] I see only first entity. …

Nikola Klipa
- 333
- 3
- 14
0
votes
1 answer
Objective-C framework BJImageCropper Border corner
I want to change the design for border corner of BJImageCropper like this Sample Image, can anyone help me on this ?
Currently I am using this code for initialize BJImageCropper :
self.imageCropper = [[BJImageCropper alloc]…

Invictus Cody
- 517
- 6
- 17
0
votes
0 answers
Getting strange issue while running Objective-C framework in Swift Project
Not sure what is the issue, and unable to find on goggle too.
Application screen became black and app crashed.
-[BSMutableSettings applicationWillResignActive:]: unrecognized selector sent to instance 0x13ed05f20
Terminating app due to uncaught…

Mohammad Zaid Pathan
- 16,304
- 7
- 99
- 130
0
votes
1 answer
iOS Framework Delegate and IBAction are not getting called in Swift
I am creating one framework in Objective-C.
I have everything working fine in Objective-C project.
But when I Integrate my framework with Swift project, it behaves strange.
My Swift Project:
Just one ViewController and one button with IBAction…

Mohammad Zaid Pathan
- 16,304
- 7
- 99
- 130