Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add static XCFramework option to packager scripts #149

Merged
merged 2 commits into from
Feb 26, 2021
Merged

Conversation

macdrevx
Copy link
Contributor

Pull request checklist:

  • Briefly describe the changes in this PR.
  • Apply changelog label ('breaking change', 'bug πŸͺ²', 'build', 'docs', 'feature 🍏', 'performance ⚑', 'testing πŸ’―') or use the label 'skip changelog'
  • Add an entry inside this element for inclusion in the mapbox-maps-ios changelog: <changelog>Added a static XCFramework direct download installation option.</changelog>.

Summary of changes

  • Adds LINK_TYPE parameters to create-xcframework.sh, build-dependency.sh, and package-mapbox-maps.sh
  • Updates build_dependency.sh and create-xcframework.sh to make SCHEME default to the value passed for NAME
  • Updates create-xcframework.sh to make PROJECT default to the value passed for NAME suffixed with .xcodeproj
  • Forces LLVM_LTO=NO when running xcodebuild archive because otherwise xcodebuild -create-xcframework was failing with error: unable to find any architecture information in the binary at '…/iOS-Simulator.xcarchive/Products/Library/Frameworks/MapboxMobileEvents.framework/MapboxMobileEvents': Unknown header: 0xb17c0de
  • Add a separate README with adjusted installation instructions for static XCFrameworks.

User impact

This change lays the groundwork for offering a static XCFramework option.

- Adds LINK_TYPE parameters to create-xcframework.sh,
  build-dependency.sh, and package-mapbox-maps.sh
- Updates build_dependency.sh and create-xcframework.sh to make SCHEME
  default to the value passed for NAME
- Updates create-xcframework.sh to make PROJECT default to the value
  passed for NAME suffixed with .xcodeproj
- Forces LLVM_LTO=NO when running xcodebuild archive because otherwise
  xcodebuild -create-xcframework was failing with "error: unable to find
  any architecture information in the binary at
  '…/iOS-Simulator.xcarchive/Products/Library/Frameworks/
  MapboxMobileEvents.framework/MapboxMobileEvents': Unknown header:
  0xb17c0de"
- Add a separate README with adjusted installation instructions for
  static XCFrameworks.
@macdrevx macdrevx added the feature 🍏 When working on a new feature or feature enhancement label Feb 26, 2021
scripts/release/README-dynamic.md Outdated Show resolved Hide resolved
@macdrevx macdrevx merged commit 054afcc into main Feb 26, 2021
@macdrevx macdrevx deleted the ah/packager-static branch February 26, 2021 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🍏 When working on a new feature or feature enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants