mongodb / stitch-ios-sdk

Apache License 2.0
42 stars 25 forks source link

Module compiled with Swift 4.1.2 cannot be imported by the Swift 4.2 compiler #93

Closed EthanSK closed 5 years ago

EthanSK commented 5 years ago

Please add swift 4.2 support

jsflax commented 5 years ago

Hi @ETGgames ,

This should now be fixed, with the release of StitchCoreSDK 4.0.6. Please give it a try.

Thanks!

EthanSK commented 5 years ago

There is this error when trying to update the pods Traceback (most recent call last): File "scripts/build_frameworks.py", line 1, in from frameworkify import ( File "/Users/user/Library/Caches/CocoaPods/Pods/Release/StitchCoreSDK/4.0.5-c11f3/scripts/frameworkify/init.py", line 1, in from modules import Module, SwiftModule ModuleNotFoundError: No module named 'modules'

jsflax commented 5 years ago

Have you tried clearing your cache?

What does your podfile look like?

On Tue 9 Oct 2018, 23:17 ETGgames, notifications@github.com wrote:

There is this error when trying to update the pods Traceback (most recent call last): File "scripts/build_frameworks.py", line 1, in from frameworkify import ( File "/Users/ethansarif-kattan/Library/Caches/CocoaPods/Pods/Release/StitchCoreSDK/4.0.5-c11f3/scripts/frameworkify/ init.py", line 1, in from modules import Module, SwiftModule ModuleNotFoundError: No module named 'modules'

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mongodb/stitch-ios-sdk/issues/93#issuecomment-428372494, or mute the thread https://github.com/notifications/unsubscribe-auth/AEJ7QGiIbMDB8ZGJ1b0TgpNyZmskxJovks5ujSCMgaJpZM4W89ue .

EthanSK commented 5 years ago

Tried cleaning the cache, still get the similar error.

-=O=# # # #
-=O#- # # #
-=O=# # # #
-=O#- # # #
Traceback (most recent call last): File "scripts/build_frameworks.py", line 1, in from frameworkify import ( File "/Users/ethansarif-kattan/Library/Caches/CocoaPods/Pods/Release/StitchCoreSDK/4.0.6-6a045/scripts/frameworkify/init.py", line 1, in from modules import Module, SwiftModule ModuleNotFoundError: No module named 'modules'

This is my podfile: `# Uncomment the next line to define a global platform for your project # platform :ios, '9.0'

target 'DoppelChat' do # Comment the next line if you're not using Swift and don't want to use dynamic frameworks use_frameworks!

# Pods for DoppelChat pod 'Firebase/Core' pod 'Firebase/Storage' pod 'Firebase/Auth' pod 'Firebase/Database' pod 'Firebase/Firestore' pod 'IQKeyboardManagerSwift' #pod 'SwiftyJSON' pod 'Cosmos' #pod 'GeoFire', :git => 'https://github.com/firebase/geofire-objc.git' pod 'SwiftyStoreKit' pod 'Disk' pod 'Fabric', '~> 1.7.7' pod 'Crashlytics', '~> 3.10.2' pod 'Firebase/Performance' pod 'Firebase/RemoteConfig' pod 'NVActivityIndicatorView' pod 'AWSMobileClient' pod 'AWSRekognition' #pod 'RangeSeekSlider' - done manually pod 'StitchSDK'

target 'DoppelChatTests' do inherit! :search_paths # Pods for testing end

target 'DoppelChatUITests' do inherit! :search_paths # Pods for testing end

end

`