Invalid Bundle WatchOS Swift Standard Libraries

Hello.


I have the following issue:

I used XCode 9 Beta 6 and iOS 11 SDK to archive and upload to TestFlight my App with WatchOS extension.

1 error) After first attempt, I received an issue with Watch App size: 52 mb. I switched off 'ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES', and Watch App size was reduced to normal, but I recevied new error:

2 error) "Invalid Bundle - One or more dynamic libraries that are referenced by your app are not present in the dylib search path."


I resolved both issues by using this 'ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES' settings:

===

iOS App: ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES

WatchOS App: ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES

WatchOS App Extension: ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO

===

But now WatchOS App size is close to be 50 mb (48 mb), which is not good.


Id like to fix both errors, but without WatchApp size grow.


I never had similar issues with XCode 8 and iOS 10 SDK.


Does anybody has similar issues?


Thanks.

Replies

Yeah I have same issue with Xcode 9, did you find a work around?