Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iTunes Connect - Invalid Swift Support - The Watch OS application has Swift libraries at both

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?

like image 962
Steffen D. Sommer Avatar asked Mar 05 '16 20:03

Steffen D. Sommer


Video Answer


1 Answers

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.

like image 170
PiXeL16 Avatar answered Oct 01 '22 22:10

PiXeL16