objective c - Generate Xcode Project from iOS App -


is there way create app generates xcode project developer can run in xcode. kind of code generator. i'm trying answers in web no avail. i'm not sure start. basically, app generate xcode compatible codes developer can use open xcode. appreciated. in advance! :)

a sample application that's available in appstore offers same functionality interface ios. link: https://itunes.apple.com/en/app/interface/id360543182?mt=8

another example dapp app creator: https://itunes.apple.com/au/app/dapp-app-creator-make-learn/id370888555?mt=8

from app description:

xcode export, turn mockup live codes our free cloud based xcode export service convert entire project xcode project in 1 single tap.

dapp creates complete xcode project - including code, images, videos , xcode storyboards!

update: thinking of including zip file of sample xcode project template file inside app generate codes used template project, edit or add them in template project, zip , export documents folder thru itunes file sharing.

  1. open xcode, create new project, choose single view application (or best suits you'll generating) click create.

  2. go directory project created, zip , include in project app generating.

  3. when it's time generate code, step 1 create working directory , unzip project it.

  4. generate classes etc. , put them directory appdelegate.h , other files generated single view application template are.

  5. open xcodeproj package, @ root level there file called project.pbxproj, read memory

  6. modify project.pbxproj include generated code files, there section called pbxfilereference can this.

here's example pbxfilereference section project had handy:

    /* begin pbxfilereference section */         db6c03ba1b148f56007554e7 /* uialertcontroller.app */ = {isa = pbxfilereference; explicitfiletype = wrapper.application; includeinindex = 0; path = uialertcontroller.app; sourcetree = built_products_dir; };         db6c03be1b148f56007554e7 /* info.plist */ = {isa = pbxfilereference; lastknownfiletype = text.plist.xml; path = info.plist; sourcetree = "<group>"; };         db6c03bf1b148f56007554e7 /* main.m */ = {isa = pbxfilereference; lastknownfiletype = sourcecode.c.objc; path = main.m; sourcetree = "<group>"; };         db6c03c11b148f56007554e7 /* appdelegate.h */ = {isa = pbxfilereference; lastknownfiletype = sourcecode.c.h; path = appdelegate.h; sourcetree = "<group>"; };         db6c03c21b148f56007554e7 /* appdelegate.m */ = {isa = pbxfilereference; lastknownfiletype = sourcecode.c.objc; path = appdelegate.m; sourcetree = "<group>"; };         db6c03c41b148f56007554e7 /* viewcontroller.h */ = {isa = pbxfilereference; lastknownfiletype = sourcecode.c.h; path = viewcontroller.h; sourcetree = "<group>"; };         db6c03c51b148f56007554e7 /* viewcontroller.m */ = {isa = pbxfilereference; lastknownfiletype = sourcecode.c.objc; path = viewcontroller.m; sourcetree = "<group>"; };         db6c03c81b148f56007554e7 /* base */ = {isa = pbxfilereference; lastknownfiletype = file.storyboard; name = base; path = base.lproj/main.storyboard; sourcetree = "<group>"; };         db6c03ca1b148f56007554e7 /* images.xcassets */ = {isa = pbxfilereference; lastknownfiletype = folder.assetcatalog; path = images.xcassets; sourcetree = "<group>"; };         db6c03cd1b148f56007554e7 /* base */ = {isa = pbxfilereference; lastknownfiletype = file.xib; name = base; path = base.lproj/launchscreen.xib; sourcetree = "<group>"; };         db6c03d31b148f56007554e7 /* uialertcontrollertests.xctest */ = {isa = pbxfilereference; explicitfiletype = wrapper.cfbundle; includeinindex = 0; path = uialertcontrollertests.xctest; sourcetree = built_products_dir; };         db6c03d81b148f56007554e7 /* info.plist */ = {isa = pbxfilereference; lastknownfiletype = text.plist.xml; path = info.plist; sourcetree = "<group>"; };         db6c03d91b148f56007554e7 /* uialertcontrollertests.m */ = {isa = pbxfilereference; lastknownfiletype = sourcecode.c.objc; path = uialertcontrollertests.m; sourcetree = "<group>"; }; /* end pbxfilereference section */ 
  1. write changes project.pbxproj (i imagine there may more pbxfilereference depending on complexity of you're trying achieve).

  2. zip contents of working directory project , email or uidocumentinteractioncontroller them out user.

this article on pbxproj file: http://danwright.info/blog/2010/10/xcode-pbxproject-files/


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -