My decision is to create a universal framework in xcode6.
Follow these steps:
Step 1:
Fileβ> New β> Project β> Framework & Library β> Next β> Product Name
Step 2: Creating Custom Class Files
Step 3 :
Target -> Build phase -> Headers,
Makes all headers publicly available. Now create a simulator and device.
Step 4:
File -> New -> Target -> iOS -> Other -> Aggrigate ->somename eg: framework
Step 5:
From Targets β> Custom aggregate target(Eg: Framework)β> Build Phaseβ> Add Run script
Step 6: Add the following shell code to the run script
/// UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal
Step 7:
Goto active scheme β> Custom aggregate β> Build
Step 8: Now right-click the product framework in Xcode and click show in finder.
Check the "Debug-universal" folder and get a universal infrastructure.
source share