3

After migrating from Swift 2.3 to Swift 3, I have these complie errors:

First:

error: unable to read module map contents from 'Target Support Files/Alamofire-watchOS/Alamofire-watchOS.modulemap': Error Domain=NSCocoaErrorDomain Code=260 "The file “Alamofire-watchOS.modulemap” couldn’t be opened because there is no such file."

Second:

error: unable to read module map contents from 'Target Support Files/SwiftyJSON-watchOS/SwiftyJSON-watchOS.modulemap': Error Domain=NSCocoaErrorDomain Code=260 "The file “SwiftyJSON-watchOS.modulemap” couldn’t be opened because there is no such file."

Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git'
pod 'Alamofire', '~> 3.4'
pod 'HanekeSwift'
pod 'Google/Analytics', '~> 1.0.0'
pod 'MBProgressHUD', '~> 0.9.1'

target 'MyApp' do
    pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git'
    pod 'Alamofire', '~> 3.4'
end

target 'MyApp Watch app Extension' do
    platform :watchos, '3.0'
    pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git'
    pod 'Alamofire', '~> 3.4'
end

target 'MyAppTests' do

end

pod install error:

TEMPLATE END

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:

If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly submit a ticket:

https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on cocoapods/cocoapods...
Found no similar issues. To create a new issue, please visit:
https://github.com/cocoapods/cocoapods/issues/new
5
  • Do you use Cocoapods ? Commented Sep 23, 2016 at 14:17
  • @bogdanf Yes I do. Commented Sep 23, 2016 at 14:23
  • Did you update the cocoapods? What is in your Podfile? Commented Sep 23, 2016 at 14:37
  • 2
    Put it in the question. Don't put code into a comment. Commented Sep 23, 2016 at 14:54
  • Can you try a clean pod install ? Commented Sep 24, 2016 at 14:01

1 Answer 1

-4
    i)Clean(cmd+shift+k )

enter image description here

    ii)Pod Update 
    iii)Run (cmd+r)

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.