Skip to content

Removed all deprecation warnings in tests / SwiftAPITester#1631

Merged
NachoSoto merged 1 commit into
mainfrom
silence-more-deprecated-warnings
May 31, 2022
Merged

Removed all deprecation warnings in tests / SwiftAPITester#1631
NachoSoto merged 1 commit into
mainfrom
silence-more-deprecated-warnings

Conversation

@NachoSoto

Copy link
Copy Markdown
Contributor

The project now builds with no warnings 🎉

@NachoSoto NachoSoto requested a review from a team May 31, 2022 19:22

@aboedo aboedo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nice!!! 🏆

@NachoSoto NachoSoto merged commit 27d5d1f into main May 31, 2022
@NachoSoto NachoSoto deleted the silence-more-deprecated-warnings branch May 31, 2022 19:53
NachoSoto added a commit that referenced this pull request May 31, 2022
Now that #1631 fixed all warnings (plus a few more fixed here that I missed), we can enforce this to make sure we don't add any more in the future.
NachoSoto added a commit that referenced this pull request Jun 2, 2022
Now that #1631 fixed all warnings (plus a few more fixed here that I missed), we can enforce this to make sure we don't add any more in the future.

Note that `StoreKitUnitTests` and `BackendIntegrationTests` override the flag to disable it because currently `SKAdTestSession` has a warning:
```
/Applications/Xcode-13.4.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/Developer/Library/Frameworks/StoreKitTest.framework/Headers/StoreKitTest.h:10:9: note: in file included from /Applications/Xcode-13.4.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/Developer/Library/Frameworks/StoreKitTest.framework/Headers/StoreKitTest.h:10:
#import <StoreKitTest/SKAdTestSession.h>
        ^
/Applications/Xcode-13.4.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/Developer/Library/Frameworks/StoreKitTest.framework/Headers/SKAdTestSession.h:22:1: error: conflicting nullability specifier on return types, 'nullable' conflicts with existing specifier 'nonnull'
- (nullable instancetype)init;
^
/Applications/Xcode-13.4.0-Release.Candidate.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.5.sdk/usr/include/objc/NSObject.h:63:1: note: previous declaration is here
- (instancetype)init
^
```
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