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

Error building 7.1.0 on Xcode 12.2 beta 3 for tvOS #298

Closed
accannis opened this issue Oct 14, 2020 · 4 comments · Fixed by #315
Closed

Error building 7.1.0 on Xcode 12.2 beta 3 for tvOS #298

accannis opened this issue Oct 14, 2020 · 4 comments · Fixed by #315
Assignees
Labels
bug Something isn't working released

Comments

@accannis
Copy link

I've included Amplitude-iOS using SPM. I just updated from 5.2.0 (which built just fine) to 7.1.0, which no longer builds.

I get the following build errors:

SourcePackages/checkouts/Amplitude-iOS/Sources/Amplitude/AMPInfoViewController.m:69:46: 'UIPasteboard' is unavailable: not available on tvOS
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator14.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPasteboard.h:32:96: 'UIPasteboard' has been explicitly marked unavailable here
SourcePackages/checkouts/Amplitude-iOS/Sources/Amplitude/AMPInfoViewController.m:70:16: 'string' is unavailable: not available on tvOS
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator14.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPasteboard.h:90:46: 'string' has been explicitly marked unavailable here
SourcePackages/checkouts/Amplitude-iOS/Sources/Amplitude/AMPInfoViewController.m:76:46: 'UIPasteboard' is unavailable: not available on tvOS
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator14.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPasteboard.h:32:96: 'UIPasteboard' has been explicitly marked unavailable here
SourcePackages/checkouts/Amplitude-iOS/Sources/Amplitude/AMPInfoViewController.m:77:16: 'string' is unavailable: not available on tvOS
/Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator14.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPasteboard.h:90:46: 'string' has been explicitly marked unavailable here
SourcePackages/checkouts/Amplitude-iOS/Sources/Amplitude/AMPEventExplorer.m:88:13: Initializing 'CGFloat' (aka 'double') with an expression of incompatible type 'id'
SourcePackages/checkouts/Amplitude-iOS/Sources/Amplitude/AMPEventExplorer.m:96:10: Assigning to 'CGFloat' (aka 'double') from incompatible type 'void'
ARC Semantic Issue Group
SourcePackages/checkouts/Amplitude-iOS/Sources/Amplitude/AMPEventExplorer.m:53:44: No known class method for selector 'barBottomOffset'
SourcePackages/checkouts/Amplitude-iOS/Sources/Amplitude/AMPEventExplorer.m:88:41: No known class method for selector 'statusBarHeight'
SourcePackages/checkouts/Amplitude-iOS/Sources/Amplitude/AMPEventExplorer.m:89:40: No known class method for selector 'barBottomOffset'

@accannis accannis added the bug Something isn't working label Oct 14, 2020
@jooohhn
Copy link
Contributor

jooohhn commented Oct 16, 2020

Thanks for the notice, looking into it

@jooohhn
Copy link
Contributor

jooohhn commented Oct 21, 2020

@haoliu-amp do you have insight? Problem seems to be introduced with event explorer and using tvOS

@jooohhn
Copy link
Contributor

jooohhn commented Oct 22, 2020

7.1.0 introduced an event explorer feature that's only available on iOS. Working on a fix to exclude on macOS and tvOS

@github-actions
Copy link

github-actions bot commented Dec 2, 2020

🎉 This issue has been resolved in version 7.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants