Note that there are some explanatory texts on larger screens.

plurals
  1. POCreating Static Library from a workspace
    primarykey
    data
    text
    <p>I managed to get static libraries working and its all fine. Now that I have moved onto the proper library I want to create Im having issues. Im using cocoapods to import other files and it creates a workspace. Now the script I have for compiling no longer works and my assumption is because I am working in a framework now. I have been googling for hours trying to get an answer but all the things I have found only relate to turning a single project into a library My questions are: 1) Is it possible to combine a workspace into one single library? 2) should I be trying to create a framework instead? 3) Is it just my script that isnt right?</p> <pre><code>XCODEBUILD_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin XCODEBUILD=$XCODEBUILD_PATH/xcodebuild $XCODEBUILD -project T5Pusher.xcodeproj -target "T5Pusher" -sdk "iphoneos" - configuration "Release" clean build $XCODEBUILD -project T5Pusher.xcodeproj -target "T5Pusher" -sdk "iphonesimulator" - configuration "Release" clean build lipo -create -output "build/libT5Pusher.a" "build/Release-iphoneos/libT5Pusher.a" "build/Release-iphonesimulator/libT5Pusher.a" </code></pre> <p>also tried this</p> <pre><code>XCODEBUILD_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin XCODEBUILD=$XCODEBUILD_PATH/xcodebuild $XCODEBUILD -workspace T5Pusher.xcworkspace -scheme "T5Pusher" -sdk "iphoneos" - configuration "Release" clean build $XCODEBUILD -workspace T5Pusher.xcworkspace -scheme "T5Pusher" -sdk "iphonesimulator" - configuration "Release" clean build lipo -create -output "build/libT5Pusher.a" "build/Release-iphoneos/libT5Pusher.a" "build/Release-iphonesimulator/libT5Pusher.a" </code></pre> <p>The errors I get are</p> <pre><code>** BUILD FAILED ** The following build commands failed: Libtool build/PusherTest.build/Release-iphoneos/PusherTest.build/Objects- normal/armv7/libPusherTest.a normal armv7 Libtool build/PusherTest.build/Release-iphoneos/PusherTest.build/Objects-normal/armv7s/libPusherTest.a normal armv7s (2 failures) lipo: can't open input file: build/Release-iphoneos/libPusherTest.a (No such file or directory) Showing first 200 notices only </code></pre> <p>and for the second, the build succeeds but the library (.a) files are never created so it cannot combine them</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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