Skip to content

Commit af60bf3

Browse files
committed
fixed build issues
1 parent 2743b78 commit af60bf3

2 files changed

Lines changed: 12 additions & 29 deletions

File tree

5.59 KB
Binary file not shown.

scripts/build_release.sh

Lines changed: 12 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -67,46 +67,29 @@ clean_build() {
6767
build_app() {
6868
print_status "Building AVD Manager..."
6969

70+
# Build without signing for local development
7071
xcodebuild -project avdmanager.xcodeproj \
7172
-scheme avdmanager \
7273
-configuration Release \
7374
-derivedDataPath "$BUILD_DIR/" \
74-
-archivePath "$BUILD_DIR/avdmanager.xcarchive" \
75-
archive
75+
CODE_SIGN_IDENTITY="" \
76+
CODE_SIGNING_REQUIRED=NO \
77+
build
7678

7779
print_success "Build completed successfully"
7880
}
7981

8082
# Export the app
8183
export_app() {
82-
print_status "Exporting app..."
83-
84-
# Create export options plist
85-
cat > ExportOptions.plist << EOF
86-
<?xml version="1.0" encoding="UTF-8"?>
87-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
88-
<plist version="1.0">
89-
<dict>
90-
<key>method</key>
91-
<string>development</string>
92-
<key>stripSwiftSymbols</key>
93-
<true/>
94-
<key>thinning</key>
95-
<string>&lt;none&gt;</string>
96-
</dict>
97-
</plist>
98-
EOF
99-
100-
# Export the app
101-
xcodebuild -exportArchive \
102-
-archivePath "$BUILD_DIR/avdmanager.xcarchive" \
103-
-exportOptionsPlist ExportOptions.plist \
104-
-exportPath "$EXPORT_DIR/"
105-
106-
# Clean up export options
107-
rm ExportOptions.plist
84+
print_status "Copying built app..."
85+
86+
# Create export directory
87+
mkdir -p "$EXPORT_DIR"
88+
89+
# Copy the built app directly from build products
90+
cp -R "$BUILD_DIR/Build/Products/Release/avdmanager.app" "$EXPORT_DIR/"
10891

109-
print_success "Export completed"
92+
print_success "App copied successfully"
11093
}
11194

11295
# Create DMG

0 commit comments

Comments
 (0)