Skip to content

Conversation

@ugiacoman
Copy link
Contributor

@ugiacoman ugiacoman commented Jul 10, 2019

Problem

In Xcode 11, you cannot import WatchKit on iOS simulators.

Error:

"WatchKit" is not available when building for iOS Simulator. Consider using `#if !os(iOS)` to conditionally import this framework.

Solution

  • Conditionally import WatchKit if running on watchOS

Testing

  • Passes Tests
  • Runs on both Xcode 10.2 and Xcode 11

@torchhound
Copy link
Contributor

Hi @ugiacoman, thanks for putting in a PR! I'll do some testing on this and get back to you.

@torchhound
Copy link
Contributor

Tested and LGTM!

@torchhound torchhound merged commit 43deb88 into launchdarkly:v4 Jul 10, 2019
@torchhound
Copy link
Contributor

torchhound commented Jul 11, 2019

This is now available in the iOS Client 4.1.2 release, thanks again for the PR!

keelerm84 pushed a commit that referenced this pull request May 4, 2022
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