-
Notifications
You must be signed in to change notification settings - Fork 275
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
Fix static xcframework import identifier picking issues #1579
Merged
keith
merged 4 commits into
master
from
ks/add-static-xcframework-import-test-for-device
Jul 15, 2022
Merged
Fix static xcframework import identifier picking issues #1579
keith
merged 4 commits into
master
from
ks/add-static-xcframework-import-test-for-device
Jul 15, 2022
Conversation
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
keith
force-pushed
the
ks/add-static-xcframework-import-test-for-device
branch
from
July 15, 2022 18:32
40f7be2
to
e36bba5
Compare
keith
changed the title
Add static xcframework import test for device
Fix static xcframework import identifier picking issues
Jul 15, 2022
keith
force-pushed
the
ks/add-static-xcframework-import-test-for-device
branch
from
July 15, 2022 18:40
e36bba5
to
366c561
Compare
`ios-arm64_x86_64-simulator` contains `ios-arm64`, so these were matching too aggressively. Since we pull the current identifier from the actual paths, we can be more strict since we don't need to handle ordering differences in architectures.
keith
requested review from
BalestraPatrick,
brentleyjones,
segiddins and
thii
as code owners
July 15, 2022 18:54
brentleyjones
approved these changes
Jul 15, 2022
copybara-service bot
pushed a commit
that referenced
this pull request
Aug 31, 2022
Current logic for figuring out an XCFramework library identifier from file paths fails to match correctly for arm64 device builds, choosing a simulator library due to how an XCFramework library identifier for a device build is a substring for a simulator build: - Device build: `ios-arm64` - Simulator build: `ios-arm64-simulator` This change updates current logic to match a library identifier from file paths using the effective target triplet, as well as matching XCFramework files using that library identifier from file paths. Additionally, it adds extra handling logic to avoid selecting an `arm64e` or `arm64_32` library when targeting `arm64` due to substring matching. Based on PR #1579 by keith PiperOrigin-RevId: 471303360
keith
pushed a commit
that referenced
this pull request
Aug 14, 2023
Current logic for figuring out an XCFramework library identifier from file paths fails to match correctly for arm64 device builds, choosing a simulator library due to how an XCFramework library identifier for a device build is a substring for a simulator build: - Device build: `ios-arm64` - Simulator build: `ios-arm64-simulator` This change updates current logic to match a library identifier from file paths using the effective target triplet, as well as matching XCFramework files using that library identifier from file paths. Additionally, it adds extra handling logic to avoid selecting an `arm64e` or `arm64_32` library when targeting `arm64` due to substring matching. Based on PR #1579 by keith PiperOrigin-RevId: 471303360 (cherry picked from commit 717d4b4)
keith
added a commit
that referenced
this pull request
Aug 14, 2023
Current logic for figuring out an XCFramework library identifier from file paths fails to match correctly for arm64 device builds, choosing a simulator library due to how an XCFramework library identifier for a device build is a substring for a simulator build: - Device build: `ios-arm64` - Simulator build: `ios-arm64-simulator` This change updates current logic to match a library identifier from file paths using the effective target triplet, as well as matching XCFramework files using that library identifier from file paths. Additionally, it adds extra handling logic to avoid selecting an `arm64e` or `arm64_32` library when targeting `arm64` due to substring matching. Based on PR #1579 by keith PiperOrigin-RevId: 471303360 (cherry picked from commit 717d4b4) --------- Co-authored-by: Mauricio Garcia <mauriciogs@google.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix xcframework incorrect library identifier picking. There are a few issues being fixed here: