Skip to content

Commit 10a5bee

Browse files
chripearSaadnajmi
andauthored
Mac/iOS NuGet pack script (microsoft#1198)
* Update Podfile.lock * Make publish overrides debug-compatible If we want to use the nuget pack script to build debug configuration for sideloading, then we want optimization off and want more debug info. * Initial nuget_pack.sh First working version, based on refactored FUA script. -p option is currently a no-op, but -d option builds Debug as advertised. * Use absolute paths for xcode_select_current_version.sh Script behavior should not depend on $PATH. * Update Podfile.lock * Add prerequisite tasks - Add do_prerequisites function that does yarn/gem/pod steps to bootstrap environment enough to build the native libraries - Add git_clean function and a third -c level since this is a pretty common troubleshooting step - Add special handling of the (now common) pushd/popd shell builtins, to suppress their normal output while not suppressing the logging of the command itself - Rename print_error to log_error for consistency with log_action - Use empty/nonempty as the boolean states for bash vars 'prerequisites' and 'debug' * Rename script to nuget_pack_apple.sh nuget_pack.sh works for FUA, but FURN includes platforms beyond Apple, so we should be more specific. * Escape backticks We don't actually want to run `pod install` when printing this message. * podfile locks Co-authored-by: Saad Najmi <sanajmi@microsoft.com>
1 parent 2439f99 commit 10a5bee

File tree

5 files changed

+858
-438
lines changed

5 files changed

+858
-438
lines changed

.ado/scripts/xcode_select_current_version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ else
77
fi
88

99
echo "Running command: sudo xcode-select --switch $XCODE_PATH"
10-
sudo xcode-select --switch "$XCODE_PATH"
10+
/usr/bin/sudo /usr/bin/xcode-select --switch "$XCODE_PATH"

.ado/xcconfig/publish_overrides.xcconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// For publish builds, only provide line tables for symbolizing crashes
2-
CLANG_DEBUG_INFORMATION_LEVEL=line-tables-only
2+
CLANG_DEBUG_INFORMATION_LEVEL[config=Release]=line-tables-only
33
// The following build setting caused build errors, so it is commented out and placed in every podspec instead
44
// OTHER_SWIFT_FLAGS=-gline-tables-only
55

66
// Optimize for size in publish builds
7-
SWIFT_OPTIMIZATION_LEVEL=-Osize
7+
SWIFT_OPTIMIZATION_LEVEL[config=Release]=-Osize
88

99
// Build for all architectures, not just the active one
1010
ONLY_ACTIVE_ARCH=NO

0 commit comments

Comments
 (0)