Both projects use same frameworks. both have appdelegates. Successfully added both projects in workspace. but can not access each others controllers. making a static library of one project did not help. making a framework of one project?? which way to go?
How to import standalone Xcode Project as a module to another project?
1.6k views Asked by Suraj At
1
There are 1 answers
Related Questions in IOS
- URLSession requesting JSON array from server not working
- Incorrect display of LinearGradientBrush in IOS
- Module not found when building flutter app for IOS
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- Expo Deep linking on iOS is not working (because of Google sign-in?)
- On iOS, the keyboard does not offer a 6-character SMS code
- Hi, there is an error happened when I build my flutter app, after I'm installing firebase packages occurs that error
- The copy/paste functionalities don't work only on iOS in the Flutter app
- Hide LiveActivityIntent Button from Shortcuts App
- While Running Github Actions Pipeline: No Signing Certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID
- Actionable notification api call not working in background
- Accessibility : Full keyboard access with scroll view in swiftui
- There is a problem with the request entity - You are not allowed to create 'iOS' profile with App ID 'XXXX'
- I am getting "binding has not yet been initialized" error when trying to connect firebase with flutter
Related Questions in WORKSPACE
- Power BI Automations of Audits and APIs
- I cant figure out how to pull scripts from s3 to my aws workspace
- Salesforce Lightning Workspace API
- Feature Request: Enumeration of issues with Workspace Trust "Do you trust the authors of the file in this folder?"
- Unable to add members to Google Workspace Group
- yarn monorepo not downloading other package's dependencies
- Xcode add dependencies to "Project" OR "Target" (difference?)
- How to establish a connection between 2 folders in different workspaces in Control-M?
- Why i am getting this error message in AWS workspace creation if i have created the bundle?
- "File 'LoginPageProperties.json' not found" error in Amazon WorkSpaces login page
- load .mat file, but not on the workspace
- Blackberry Workspaces
- How do I get a new file to open in a new workspace instead of being added to an existing workspace
- Python Terminal Not running single python files but running from folders / workspaces In Visual Studio Code
- Accidentally deleted local branches after changing the workspace in VS Code
Related Questions in IOS-FRAMEWORKS
- What is the proper way of distributing a closed source framework that depends on other frameworks/libraries on iOS?
- how to declare IntPtr in iOS Binding project on Xamarin
- Xcode project does not recognise changes in custom framework
- Seeking Advice on Gradually Replacing Existing Native Android and iOS Apps with Flutter-Based UI
- Missing assets in binary framework
- unsupported Swift architecture in Objective-C
- Flutter Plugin project could not find C++ libraries
- Why does Apple discourage the use of '@import' in framework headers?
- How to Manually Import Firebase Frameworks on Xcode 13.4
- Asset validation failed Invalid Bundle The bundle at '.app/PlugIns/AppWidgetExtension.appex
- Creating iOS framework with Objective-C
- Building for iOS Simulator but linking object file built for iOS error
- In Xcode, create framework as target in same project as app vs separate project for framework
- How to embed sub-project frameworks through cli?
- Convert app to combination of static library and dynamic framework/s for distribution
Related Questions in IOS-LIBRARY
- unsupported Swift architecture in Objective-C
- How updating dynamic framework will affect App Store build
- How to create react native wrappers for native android and iOS SDKs
- Building static library with Swift package
- Making UI elements programmatically in iOS using Xcode in Objective-C
- React Native: Unable to import React headers after updating to 0.60
- React-native link does not relink after manually removing the links
- ResearchKit.framework error: Image not found
- How to add custom subclass in cocoa framework
- Is iOS state restoration possible in iOS library? -- Could not find a storyboard named
- API / Library to Integrate Forum within native Mobile Application
- Is it possible to write a C++ library that could be used in iOS and Android Native projects?
- Difference between manually file import and pod installation in Xcode?
- How to import standalone Xcode Project as a module to another project?
- In iOS "Spring" library for animation, Do we need to set "animation" property each time before calling "animate()" method?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Because you're talking about making a static library, I think your project is an OC project. So here's the thing, if you're going to merge these two apps , you should first take out the contents that can't be duplicated, like AppDelegate and some other app settings.
You said you put two projects into one workspace but you can't access to one project's view controllers from another. That's because you did not import the header in a right way.
For example, each project has its own header search path, which can be set at your xcodeproj-Build Settings->search header search path. By default, the current path(".") of one xcodeproj's header search path is at where your xcodeproj placed. And Xcode search all of the headers in that folder recursively.
If you want to access app B's header from app A. Assumed that you had a view controller in your app A's root folder. To Access app B's header, your import may seem like so:
#import "../app B/somekindofVC.h"If you just want to import "somekindofVC.h", you can add "../app B" as a header search path in Build Settings, and select the 'recursive' option if necessary.
That's how your xcodeproj can find another's headers.
There is one more important thing should be done is that you should add app B's shared code into compile source. Since your app A could know a class of app B through header, the compiler doesn't know what is the implementation of app B's classes. So before you run your project, remember to add '.m' files you need in Build Phases->Compile Sources.