Reputation: 2247
Trying to build my iOS framework from the command line, I get "MyFramework.framework.xcarchive" instead of "MyFramework.framework".
I get the proper result when building within Xcode, just not from the command line.
My command to build is really simple:
xcodebuild -project myFramework.xcodeproj -scheme myScheme -archivePath "/dev/builds" archive
Where is my '.framework' file?
Upvotes: 4
Views: 9764
Reputation: 2231
I think you don't get build result in form of .framework because you're passing excessive archive parameter. Normally to build framework such command should work:
$ xcodebuild -project TestFramework.xcodeproj -scheme TestFramework -configuration Release -sdk macosx CONFIGURATION_BUILD_DIR=. clean build
Note that in this example build directory is current one. As a result you'll get two build flavours: TestFramework.framework and TestFramework.framework.dSYM
Upvotes: 5