After archiving and uploading my app (using Xcode 7.2.1) to iTunes Connect I receive an email from iTunes Connect saying:
Invalid Swift Support - The Watch OS application has Swift libraries at both /Payload/Today's Menu.app/TodaysReactiveMenuWatch.app/TodaysReactiveMenuWatch Extension.appex/Frameworks/ and /Payload/Today's Menu.app/TodaysReactiveMenuWatch.app/Frameworks/. Remove all of the Swift libraries from one of the locations and resubmit your app.
My project contains an iOS app as well as a watchOS app. All targets has the flag "Embedded Content Contains Swift Code" set to YES
as all of my source files are written Swift.
My pod file has the following content:
use_frameworks!
# ignore all warnings from all pods
inhibit_all_warnings!
def shared_pods
pod 'ReactiveCocoa', '4.0.1'
pod 'Alamofire', '~> 3.1.4'
pod 'Unbox', '~> 1.3'
end
target 'TodaysReactiveMenu' do
platform :ios, '9.0'
shared_pods
pod 'Fabric', '~> 1.6.0'
pod 'Crashlytics', '~> 3.4.0'
pod 'PureLayout', '~> 3.0.1'
end
target 'TodaysReactiveMenuTests' do
end
target 'TodaysReactiveMenuWatch Extension' do
platform :watchos, '2.0'
shared_pods
end
I'm using CocoaPods 1.0.0.beta.4
. Any idea on how I fix this issue?
I discovered that changing the "Embedded Content Contains Swift Code" from YES to NO in the Watchkit App target and setting the "Embedded Content Contains Swift Code" to Yes in the Watchkit Extension target worked for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With