Skip to content

Commit 1a2c9a7

Browse files
committed
Adjust build settings and command for deployment
1 parent dc9cada commit 1a2c9a7

File tree

3 files changed

+16
-20
lines changed

3 files changed

+16
-20
lines changed

Projects/Project.swift

+4-1
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,14 @@ let project = Project(
3232
.package(product: "libsecp256k1")
3333
],
3434
settings: .settings(
35+
base: ["BUILD_LIBRARY_FOR_DISTRIBUTION": "YES"],
3536
configurations: [
3637
.debug(name: "Debug", xcconfig: "Resources/P256K/Debug.xcconfig"),
3738
.release(name: "Release", xcconfig: "Resources/P256K/Release.xcconfig")
3839
],
39-
defaultSettings: .recommended(excluding: ["SKIP_INSTALL"])
40+
defaultSettings: .recommended(
41+
excluding: ["SKIP_INSTALL"]
42+
)
4043
)
4144
),
4245
.target(

Projects/Resources/P256K/Shared.xcconfig

-8
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,6 @@
2020
ALLOW_TARGET_PLATFORM_SPECIALIZATION = YES
2121

2222

23-
// Build Libraries for Distribution
24-
//
25-
// Ensures that your libraries are built for distribution. For Swift, this enables
26-
// support for library evolution and generation of a module interface file.
27-
28-
BUILD_LIBRARY_FOR_DISTRIBUTION = YES
29-
30-
3123
// User Script Sandboxing
3224
//
3325
// If enabled, the build system will sandbox user scripts to disallow undeclared

bitrise.yml

+12-11
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ project_type: other
55
meta:
66
bitrise.io:
77
stack: osx-xcode-16.2.x
8-
machine_type_id: g2-m1.4core
8+
machine_type_id: g2.mac.medium
99
trigger_map:
1010
- push_branch: main
1111
pipeline: PIPELINE-P256K-ZKP
@@ -86,7 +86,7 @@ workflows:
8686
8787
# 1. Generate Xcode project:
8888
# The command generates an Xcode project using Tuist for the project configuration located in the 'Projects/' directory.
89-
swift package --disable-sandbox tuist generate -p Projects/ && \
89+
swift package --disable-sandbox tuist generate -p Projects/ --no-open && \
9090
9191
# 2. Build iOS target:
9292
# Builds the 'P256K' target for the iOS platform using the Tuist project configuration from 'Projects/'.
@@ -97,7 +97,7 @@ workflows:
9797
swift package --disable-sandbox tuist test XCFramework-Workspace -p Projects/ --platform ios
9898
- script:
9999
title: ARCHIVE & CREATE XCFRAMEWORK
100-
timeout: 360
100+
timeout: 720
101101
inputs:
102102
- content: |-
103103
#!/usr/bin/env bash
@@ -149,18 +149,19 @@ workflows:
149149
# Each -archive parameter specifies a path to a .xcarchive built for a different platform
150150
# -framework specifies the framework within those archives to include in the XCFramework
151151
# The -output parameter specifies the name and location of the XCFramework to be created
152-
xcodebuild -create-xcframework
153-
-archive Archives/P256K-iOS.xcarchive -framework P256K.framework
154-
-archive Archives/P256K-iOS_Simulator.xcarchive -framework P256K.framework
155-
-archive Archives/P256K-macOS.xcarchive -framework P256K.framework
156-
-archive Archives/P256K-tvOS.xcarchive -framework P256K.framework
157-
-archive Archives/P256K-tvOS_Simulator.xcarchive -framework P256K.framework
158-
-archive Archives/P256K-watchOS.xcarchive -framework P256K.framework
159-
-archive Archives/P256K-watchOS_Simulator.xcarchive -framework P256K.framework
152+
xcodebuild -create-xcframework \
153+
-archive "Archives/P256K-iOS.xcarchive" -framework P256K.framework \
154+
-archive "Archives/P256K-iOS Simulator.xcarchive" -framework P256K.framework \
155+
-archive "Archives/P256K-macOS.xcarchive" -framework P256K.framework \
156+
-archive "Archives/P256K-tvOS.xcarchive" -framework P256K.framework \
157+
-archive "Archives/P256K-tvOS Simulator.xcarchive" -framework P256K.framework \
158+
-archive "Archives/P256K-watchOS.xcarchive" -framework P256K.framework \
159+
-archive "Archives/P256K-watchOS Simulator.xcarchive" -framework P256K.framework \
160160
-output P256K.xcframework
161161
- deploy-to-bitrise-io:
162162
inputs:
163163
- deploy_path: "$BITRISE_SOURCE_DIR/P256K.xcframework"
164+
- is_compress: true
164165
PULL-PACKAGE-FILES:
165166
steps:
166167
- pull-intermediate-files:

0 commit comments

Comments
 (0)