All Questions
Tagged with ios-frameworks xcode
191 questions
0
votes
0
answers
21
views
How can I create a shared framework with resources?
I am optimizing my app size and encountered a problem with spm: how can I create a shared(between main app executable and app's extensions) frameworks with its own resources? I created a simple ...
1
vote
1
answer
157
views
Unable to compile iOS Framework with OpenCV - getting error "Expected identifier"
I am creating a iOS native framework for my React Native App. I am using OpenCV capabilities and other core modules to get certain results.
I am getting below error when trying to run the code:
Below ...
0
votes
0
answers
381
views
iOS framework build error - Build input file cannot be found
I'm getting this error while building my iOS framework:
Build input file cannot be found: '/Users/######/Movahed/Plankton/IOS/plankton/DerivedData/plankton/Build/Products/Debug-iphonesimulator/...
0
votes
0
answers
44
views
What is the proper way of distributing a closed source framework that depends on other frameworks/libraries on iOS?
I have a closed source framework that depends on other open source project, for sake of discussion let's say Alamofire.
At the moment I am creating a dynamic framework for the closed source code and ...
0
votes
0
answers
89
views
Xcode project does not recognise changes in custom framework
I have created two projects in Xcode:
Framework. It just has one public class and one public method
Xcode project.
I have drag and dropped my framework into project. After that, framework was ...
-1
votes
1
answer
146
views
Missing assets in binary framework
I'm fairly new to working with binary frameworks. I'm finding that assets are not being included in the binary framework even after including them in Copy Bundle Resources. I've been looking at the ...
4
votes
1
answer
1k
views
Why does Apple discourage the use of '@import' in framework headers?
I have a framework target which contains a mixture of Objective-C and Swift source files.
I just upgraded my project's build settings to the settings recommended by Xcode 14.3.1.
One of the changes ...
0
votes
1
answer
3k
views
Building for iOS Simulator but linking object file built for iOS error
I have a macbook Air M1 and i cloned my project and tried to run that then got this, how could i fix this?
Showing Recent Issues
In /Users/xxxxxxxx/Desktop/apps/iOS/newC/xxxxxxxx_xxxxxx/xxxx.xxxxxxx....
1
vote
0
answers
122
views
In Xcode, create framework as target in same project as app vs separate project for framework
Main question
Here is my scenario: I have app A in Xcode project X. I will create framework F to use in app A. I could create framework F inside project X as another target. I could also create a new ...
0
votes
1
answer
110
views
How to embed sub-project frameworks through cli?
I'm working with Qt which generates its own XCode project to make an iOS app. For this app I want to include a cocoapod dependency (Sentry). But I can't figure out how to add the sub-project ...
0
votes
1
answer
341
views
iOS: Runtime error when testing custom Framework with 3rd-party CocoaPod dependency (ARCore)
Our (mostly Android-backgrounded:)) team is developing partner iOS Swift Framework (SDK) with some 3rd-party dependencies inside.
Framework itself has several 3rd-party dependencies all embedded with ...
3
votes
0
answers
318
views
Xcode: merge Unit tests into a single target
I'm developing a modular app with >30 modules, where each module has its own Unit test target. I also have a special test scheme which runs all Unit tests from all the targets.
The problem is - it'...
3
votes
1
answer
653
views
podspec file: keep folder structure of public C headers?
I'm trying to add a c code to my react native plugin for the iOS part, but I'm always getting the error that the header files could not find each other.
My .podspec
require "json"
package = ...
2
votes
0
answers
418
views
XCode12: Receiving error "Include of non-modular header inside framework module"
I am trying to build a private CocoaPods framework 'APod' with other my custom private CocoaPods framework 'BPod'.
I added 'BPod' as a dependency in the podspec file:
**APod.podspec**
s.dependency '...
1
vote
0
answers
2k
views
simulating Bluetooth connection in Xcode simulator
I made some changes to an iOS framework that establishes Bluetooth connection between iPhone devices so that they can exchange messages. Additionally, I have access to the source code of an app that ...
0
votes
0
answers
69
views
iOS frameworks. Template functions with same name, linker picks up wrong function?
I've got a simple iOS app with two frameworks. Each framework have a public function which returns a specific value from private template function.
When app call public functions from frameworks - I ...
1
vote
1
answer
3k
views
Undefined symbol OBJC_CLASS_$ when creating iOS framework
I'm trying to build a iOS framework, to this, I'm using some dependencies and while building the framework project alone gives no error, when I install using CocoaPods in a demo app I get the ...
1
vote
1
answer
730
views
Access Bundle resources(fonts, images) from iOS objective-c framework
Created MyFramework.framework to share views I am displaying between my applications. Currently, I am using MyFramework in the application "MyApp".
Created bundle named Resources.bundle ...
1
vote
0
answers
871
views
iOS 14, build issue when Framework is integrated - x86_64 simulator
In iOS Framework project, we have Obj C and Swift code, we build a .framework and distribute through our code repo for other app projects to integrate.
The build we generate is an universal framework, ...
0
votes
1
answer
26
views
JSQCoreDataKit: Use of undeclared type 'SaveResult' despite finding the definition of the type when clicking "Go to definition"
I am using the framework JSQCoreDataKit.
I've installed it successfully:
In one of the files, it is used as follows:
import JSQCoreDataKit
func saveChanges(completion: @escaping (SaveResult) -&...
1
vote
0
answers
56
views
Lexical or preprocessor Issue: Exporting Cocos2D as a iOS framework
I have an auto-generated Cocos2D iOS Application from Cocos Creator. Let's say ProjectA
(path to the iOS project /build/jsb-link/frameworks/runtime-src)
It has a reference to the (cocos2d_lib....
0
votes
3
answers
326
views
iOS framework to wrap existing framework
I'm trying to define a common framework in a project that provides an implementation-agnostic layer. For example, provide a protocol like Analytics and a set of methods/properties as its interface, ...
4
votes
2
answers
1k
views
How to embed framework which depends on architecture
My iOS project depends on some CustomLib.framework. This framework comes as two separate files: one for simulator, another for real device.
I put these files into folders
@(PROJECT_DIR)/...
2
votes
1
answer
607
views
Can I have two versions of the framework in Xcode project
I am working on iOS app, and I got two versions of some CustomLib.framework from another team: one only supports real iOS devices and another only supports simulators.
For instance, after I integrated ...
0
votes
1
answer
2k
views
Xcode 11.3: Framework embeding / signing problem
After upgrading to Xcode 11.3, I can no longer embed frameworks.
To investigate the situation, I created a new single view project, and executed it under a simulator.
Then I added in Targets / ...
3
votes
1
answer
918
views
Swift framework for all Xcode versions
I provide a Swift framework for my customers.
It would only work in Xcode 10.3 (Or am I doing anything wrong?)
For other Xcode, it does have Swift compatibility issues.
So I am planning to release a ...
1
vote
1
answer
2k
views
Imported framework doesn't find framework supposed to be inside it
I have my own Cocoa Touch Framework, it has a imported framework linked to work properly
As shown on the image below when I try to import my framework to an app project, I get the error:
Missing ...
1
vote
1
answer
258
views
Do Cocoa Touch frameworks not use position-independent code?
I've noticed that when examining the Mach header using otool, Cocoa Touch frameworks never have the PIE flag set although I've set both "Generate Position-Dependent Executable" and "Generate Position-...
0
votes
0
answers
144
views
Using Firebase inside a iOS framework
I have a framework in which i'm trying to use Firebase/MLKit for OCR.
So firebase is linked to the framework and to the main app which is using this framework also.
As a result i'm getting messages ...
3
votes
1
answer
1k
views
Can't compile Simulator build with Universal (fat) Framework built with Xcode 10.2+
I can't compile application for Simulator (Device compiles successfully) which use Universal (fat) Framework built with Xcode 10.2+. Application use the Framework from Objective-C code. When switching ...
1
vote
1
answer
950
views
Change dylib name after linkage
After linkage, a dylib's name seems to be embedded into it's binary code (similar to the SONAME tag under Linux). Is it possible to change this field retrospectively?
Detailed Desciption
I have a ...
0
votes
0
answers
40
views
iOS - Added Framework, how do I import classes now?
I have added a framework to my xcode swift 4.x project. The framework was built using objective-c, is it not possible to set-up a bridging header w/ frameworks?
How will I be able to import my ...
0
votes
0
answers
390
views
Create a single iOS static library file that includes the framework it depends on
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 ...
4
votes
3
answers
7k
views
Run script for universal framework on Xcode 10
I Xcode 9.x, I was using the below script which worked fine :
######################
# Options
######################
REVEAL_ARCHIVE_IN_FINDER=false
FRAMEWORK_NAME="${PROJECT_NAME}"
...
5
votes
1
answer
581
views
Xcode sometimes removes linked library
When using different Frameworks in Xcode, the compiler and linker sometimes do not include that Framework in the library. The result is an immediate crash during the startup with the following message:...
17
votes
2
answers
6k
views
How to import external iOS framework in flutter plugin?
I'm doing a flutter plugin for stream video by using RTSP protocol. I had no problem develop it for Android, but in iOS things are more complex. I have to use an external library (SGPlayer) for ...
5
votes
0
answers
672
views
How to write iOS framework for React Native components
I have few components written in Objective-C and Swift.
When I want to use it in any react native project, i will manually copy those native components and creating a bridge.
Now i want to use the ...
5
votes
2
answers
2k
views
'MyClass' is unavailable: cannot find Swift declaration for this class - Simulator
I have my framework and I am supporting different architectures. For supporting simulator I am using x86_64 in valid architectures.
But when I use my framework in the app, I get the error while ...
17
votes
8
answers
15k
views
Framework was built without full bitcode - Framework bitcode already enabled
Getting this error on Archiving my app. Framework used is my own. So I cross checked. Bitcode in framework is Enabled. Not sure why am I getting this issue. These are the build settings in my ...
0
votes
1
answer
4k
views
Suddenly headers in headers not found <module-includes>:1:9: note: in file included from <module-includes>:1: Xcode
I have been working for a while on a project that implements a custom framework that uses a C library. The framework is written in Swift and I created a module to expose the C headers to swift. The ...
0
votes
1
answer
246
views
Developed a framework, Cannot load underlying module for 'x'
First I have did tons of researches on this issue. Non of existing solution similar to my issue.
I developed a framework. It is a pretty heavy framework which include a c++ static library and ...
0
votes
1
answer
641
views
Custom Framework using static lib - Include of non-modular header inside framework module Xcode 9
I have seen plenty of answers around about the issue but non of them are based on my case and "ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES" does not work either.
I am developing a framework ...
0
votes
1
answer
292
views
"Framework not found" after attaching the updated framework
I have created a framework and using that in my app. There was one change which I made in the framework. I built it again and from the Debug-iphonesimulator folder, I copied it (MyFramework.framework) ...
14
votes
2
answers
7k
views
Bitcode bundle could not be generated (while archiving) because Static Framework (.framework) was built without full bitcode
We are trying to enable Bitcode fully in our Static Framework but we are receiving the following error while archiving the app when the framework is integrated with it though we are able to build it ...
0
votes
1
answer
58
views
xcode how to develop with frameworks
Thanks for spending time reading my question.
I've been working as an iOS developer for more than 2 years and today I still feel shame because I don't know how to deal with frameworks. I've build ...
4
votes
1
answer
6k
views
How to reduce the size of my custom iOS framework?
I'd created a custom framework in iOS, with swift4 in Xcode 9.2. The framework contains 9 .swift files, when I tried to archive and create a .framework file, the resultant shows a size of 5MB. However,...
1
vote
1
answer
2k
views
Missing required module in iOS framework
trying to make a Swift framework which uses umbrella header to use some c code. But while importing it in the sample app, it shows the warning of missing required module.
I know it is directing the ...
1
vote
0
answers
361
views
How to prevent debugging on custom iOS framework
I developed my own iOS framework(for my clients) which provides login and some other features. I imported my framework into a test project and all runs well. In test project I invoked my framework ...
2
votes
1
answer
30
views
Are there any ios-framework integration tools available?
I am working on a cocoa touch dynamic framework. To integrate this framework in an ios app the user needs to:
add 2-3 user defined keys in xcode's build settings
add a couple of run script phases in ...
2
votes
2
answers
2k
views
Does Carthage supports static library in Swift 4?
After release of Swift 4, Xcode supporting Static library as dependency.
I am adding Static lib as dependency for dynamic framework.
But it show below error:
*** Skipped building poc_objc_static_lib ...