forked from holzschu/ios_system
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable arm64 for simulator and enable bitcode for all frameworks
- Loading branch information
Showing
2 changed files
with
2 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,2 @@ | ||
# First, creat all frameworks for both architectures: | ||
xcodebuild -project ios_system.xcodeproj -alltargets -sdk iphoneos -configuration Release -quiet | ||
xcodebuild -project ios_system.xcodeproj -alltargets -sdk iphonesimulator -arch x86_64 -configuration Release -quiet | ||
|
||
# then, merge them into XCframeworks: | ||
for framework in awk curl_ios files ios_system shell ssh_cmd tar text | ||
do | ||
rm -rf $framework.xcframework | ||
xcodebuild -create-xcframework -framework build/Release-iphoneos/$framework.framework -framework build/Release-iphonesimulator/$framework.framework -output $framework.xcframework | ||
# while we're at it, let's compute the checksum: | ||
rm -f $framework.xcframework.zip | ||
zip -rq $framework.xcframework.zip $framework.xcframework | ||
swift package compute-checksum $framework.xcframework.zip | ||
done | ||
swift run --package-path xcfs build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters