I need to create a compiled structure for distribution to third parties.
I use cocoa-pods to handle my dependencies.
To achieve this, it would seem that creating a dynamically connected structure is the best option, but I'm not sure and not open to suggestions.
I took the following steps:
- I created a wrapper project to host the target environment
- Inside the shell project, I added a new goal, "Cocoa touch framework" - "MyFramework"
- All relevant code is added to the target.
- Added import statements to the .h framework file for the generated comment // In this header, you must import all the public headers of your structure using operators like #import
- Created podfile - "pod init"
- Frame dependencies added to podfile
Podkayl is as follows:
I need to distribute the structure using the " InnerFramework " target.
That's where I got stuck -
The structure should contain all pod dependencies, and also be able to run in the simulator and on a real device (from the client's point of view) - The frame should also comply with the rules of storage of the application store, that is, a 64-bit group, etc.
The end user cannot have any access to the original source code - therefore, I cannot expect that they will be recompiled.
The end user can also use AFNetworking , and it may be a different version, that is, "1.0"
When I tried to integrate the framework into a test project, I received exceptions at runtime, as well as compile-time errors (depending on the flags that I set in the build rules).
I tried to copy the structure into a test project
Then in the “Build Phases” section, I added “Copy Files” and add “Internal Structure” with a check mark next to “Code mark on copy”
I get the error "Could not create module" InnerFramework "
if I import the frame title into the test project code
If I do not import the header of the framework, I get a runtime failure
ios objective-c xcode cocoa cocoapods
Avner barr
source share