Note that there are some explanatory texts on larger screens.

plurals
  1. POAutomate the Creation of Xcode Projects (.xcodeproj)
    text
    copied!<p>How can I automate the creation of XCode projects within a terminal? If you are asking the purpose of this... I wish to create a service that can automatically create multiple different projects for different users.</p> <hr> <h2>ApplesScript</h2> <p>I believe this is possible with AppleScript, but this would be a big drain of ressources since it would open XCode. Also, this would most likely take a lot of time to create multiple projects.</p> <p><strong>*Edit</strong>: The use of AppleScript is definitely not what I am searching for in terms of performant solution.</p> <hr> <h2>CMake</h2> <p>I have looked into CMake, but I am a bit lost and confused with the documentation given for it...</p> <p><strong>*Edit</strong>: I have found the following for a CMakeLists.txt at <a href="https://gist.github.com/740257" rel="noreferrer">https://gist.github.com/740257</a>. Yet, the settings have to be modified. </p> <pre><code># See original post at http://stackoverflow.com/questions/822404/how-to-set-up-cmake-to-build-an-app-for-the-iphone cmake_minimum_required(VERSION 2.8) cmake_policy(SET CMP0015 NEW) cmake_policy(SET CMP0016 NEW) project(test) set(NAME test) file(GLOB headers *.h) file(GLOB sources *.cpp) SET (SDKVER "4.1") SET (DEVROOT "/Developer/Platforms/iPhoneOS.platform/Developer") SET (SDKROOT "${DEVROOT}/SDKs/iPhoneOS${SDKVER}.sdk") SET (CMAKE_OSX_SYSROOT "${SDKROOT}") SET (CMAKE_OSX_ARCHITECTURES "$(ARCHS_UNIVERSAL_IPHONE_OS)") #Other 'CMAKE_OSX_ARCHITECTURES' iPhone/IOS option examples #SET (CMAKE_OSX_ARCHITECTURES "armv6" "armv7") #SET (CMAKE_OSX_ARCHITECTURES $(ARCHS_STANDARD_32_BIT)) set(CMAKE_CXX_FLAGS "-x objective-c++") set(CMAKE_EXE_LINKER_FLAGS "-framework AudioToolbox -framework CoreGraphics -framework QuartzCore -framework UIKit" ) link_directories(\${HOME}/\${SDKROOT}/lib) set(MACOSX_BUNDLE_GUI_IDENTIFIER "com.mycompany.\${PRODUCT_NAME:identifier}") set(APP_TYPE MACOSX_BUNDLE) add_executable(${NAME} ${APP_TYPE} ${headers} ${sources} ) target_link_libraries(${NAME} # other libraries to link ) # code signing set_target_properties(${NAME} PROPERTIES XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "iPhone Developer: My Name") </code></pre> <p>I will build my own solution from that file. For instance, I know that the SDK version is wrong.</p> <hr> <h2>Terminal Tools</h2> <p>Are there some Developer Tools (that comes with XCode 4.2.1) for the Terminal that I could leverage for my situation?</p> <hr>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload