IOS8 and Xcode - How to distribute embedded infrastructure with cocoa pod dependencies

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:

 # Uncomment this line to define a global platform for your project # platform :ios, '6.0' target 'Wrapper' do end target 'InnerFramework' do platform :ios, '7.0' pod "AFNetworking", "~> 2.0" end 

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

+7
ios objective-c xcode cocoa cocoapods
source share

No one has answered this question yet.

See similar questions:

one
Xcode: create pod dependency framework

or similar:

1348
How to "add existing frames" in Xcode 4?
981
How to download Xcode DMG or XIP file?
805
Xcode 7 Error: "There is no iOS distribution subscription id for ..."
545
Broken infrastructure iOS app on device, dyld: library not loaded, Xcode 6 Beta
25
Swift depending on cocoa pod
3
iOS Dynamic Framework for Carthage and Cocoa, dependent on other frameworks
2
How to create Touch Cocoa infrastructure in iOS?
2
Cocoa Touch Framework Dependencies
one
Module not found for structure dependency in Xcode
0
GHUnit with Cocoa Pods

All Articles