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

PurchaseTester: fixed watchOS build and ASC deployment #2701

Merged
merged 1 commit into from
Jun 26, 2023

Conversation

NachoSoto
Copy link
Contributor

Fixes https://app.circleci.com/pipelines/github/RevenueCat/purchases-ios/12159/workflows/89db4b5d-bafc-4b99-ac86-4f205e49f1bf/jobs/81368

We were not correctly embedding (and therefore building) the watchOS extension until #2685. That exposed a bunch of other issues which this fixes.

@NachoSoto NachoSoto added the test label Jun 23, 2023
@NachoSoto NachoSoto requested a review from a team June 23, 2023 17:47
@NachoSoto NachoSoto changed the title PurchaseTester: fixed watchOS build PurchaseTester: fixed watchOS build and ASC deployment Jun 23, 2023
Fixes https://app.circleci.com/pipelines/github/RevenueCat/purchases-ios/12159/workflows/89db4b5d-bafc-4b99-ac86-4f205e49f1bf/jobs/81368

We were not correctly embedding (and therefore building) the `watchOS` extension until #2685. That exposed a bunch of other issues which this fixes.
@codecov
Copy link

codecov bot commented Jun 23, 2023

Codecov Report

Merging #2701 (d1949e0) into main (984b231) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #2701      +/-   ##
==========================================
- Coverage   86.58%   86.57%   -0.01%     
==========================================
  Files         211      211              
  Lines       14987    14987              
==========================================
- Hits        12976    12975       -1     
- Misses       2011     2012       +1     

see 5 files with indirect coverage changes

@@ -790,13 +792,13 @@
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "match AppStore com.revenuecat.sampleapp";
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "match AppStore com.revenuecat.sampleapp macos";
"PROVISIONING_PROFILE_SPECIFIER[sdk=watchos*]" = "match AppStore com.revenuecat.sampleapp";
SUPPORTED_PLATFORMS = "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator xros xrsimulator";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main target was configured as compatible with watchOS, which didn't make sense.

Comment on lines -31 to -40
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "2CD2C501278C9B02005D1CC2"
BuildableName = "Tests iOS.xctest"
BlueprintName = "Tests iOS"
ReferencedContainer = "container:PurchaseTester.xcodeproj">
</BuildableReference>
</TestableReference>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no test target, so this was a dead link.

@NachoSoto NachoSoto merged commit d80bcc9 into main Jun 26, 2023
@NachoSoto NachoSoto deleted the purchase-tester-watchos branch June 26, 2023 05:49
tonidero pushed a commit that referenced this pull request Jun 26, 2023
**This is an automatic release.**

### Bugfixes
* Fix google play purchases missing purchase date (#2703) via Toni Rico
(@tonidero)
### Other Changes
* `PurchaseTester`: fixed `watchOS` build and ASC deployment (#2701) via
NachoSoto (@NachoSoto)
* Add `Data.sha1` (#2696) via NachoSoto (@NachoSoto)
* Refactor: extract `ErrorResponse` into its own file (#2697) via
NachoSoto (@NachoSoto)
* Add `Sequence<AdditiveArithmetic>.sum()` (#2694) via NachoSoto
(@NachoSoto)
* Refactored `Data.asString` implementation (#2695) via NachoSoto
(@NachoSoto)
* `Diagnostics`: new `FileHandler` for abstracting file operations
(#2673) via NachoSoto (@NachoSoto)
tonidero added a commit that referenced this pull request Jun 26, 2023
### Description
While uploading purchase tester to testflight, we were getting these
errors:
```
 [Application Loader Error Output]: ERROR: [ContentDelivery.Uploader] Asset validation failed (90396) Invalid Icon. The watch application 'PurchaseTester.app/Watch/PurchaseTesterWatchOS.app' contains an icon file 'Icon [email protected]' with an alpha channel. Icons should not have an alpha channel.
[Application Loader Error Output]: ERROR: [ContentDelivery.Uploader] Asset validation failed (90717) Invalid App Store Icon. The App Store Icon in the asset catalog in 'PurchaseTester.app/Watch/PurchaseTesterWatchOS.app' can't be transparent nor contain an alpha channel.
```

This icon was added in #2701. After trying it manually, removing the
alpha channel seems to have worked in fixing the issue while uploading.
This PR just changes that icon with a version without an alpha channel.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants