-
-
Notifications
You must be signed in to change notification settings - Fork 132
Project build failure for release 2.4.0 using Carthage build #159
Comments
I start to suspect this is a Carthage issue. Some more steps I tried: rm -rf ~/Library/Caches/org.carthage.CarthageKit/DerivedData/* I also tried reset Xcode by following the steps: So far this is still not working. |
With all the steps taken, it doesn't look like a Carthage issue at this moment. Suspecting it could be related to the recent Xcode and Swift update (9.2/4.0 - 9.3/4.1). To dig further. Again, Parse-SDK-iOS-OSX works fine after the update. In the same project that parseLiveQuery failed, it goes past "import Parse" without reporting similar error (inside main.swift), so it looks still something ParseLiveQuery related. : import Foundation |
Still not giving up yet, I tried carthage bootstrap, rather than carthage upate. This gets the build over the import phase (interestingly). Yet it stops at the same place of #155, reporting redefinition of module 'SSCZLib' Essentially this is a duplicate of #155. |
Since this failure is starstream related, found this from starstream's github issues: Fix Redefinition of module error in Xcode ≧ 8.3, Take 2 #482 Wondering whether that issuing is causing the StarStream compile failure. |
Indeed this bug was introduced by Starscream. I then tried a hack from Starscream's daltoniam/Starscream#445, by manually remove the SSCZlib and SSCommonCrypto module from Carthage/Checkouts/Starscream/zlib/module.modulemap file, after Carthage build. That makes my liveQuery code run again. Still, it is a hack, even though it works. I am going to close this bug after the Starscream people resolves it finally. |
ParseLiveQuery code needs to be updated, to use StarScream 3.0.6 or later (3.1.0 latest for Swift 5), to get rid of this error. |
@noobs2ninjas recently updated the StarScream dependency, I think it's now at 3.0.5, does this solve your issue? |
Trying out latest 2.4.0 with Carthage, the demo project reports failure at beginning of main.swift.
import ParseLiveQuery
"Module file was created for incompatible target x86_64-apple-ios8.0: ~/liveDemo/Carthage/Build/iOS/ParseLiveQuery.framework/Modules/ParseLiveQuery.swiftmodule/x86_64.swiftmodule".
After that, I tried a number of steps to get around the error, but so far to no avail. The steps I tried:
The environment setting is:
MacOS 10.13.4
Xcode 9.3
Carthage 0.29.0
cat Cartfile
github "ParsePlatform/ParseLiveQuery-iOS-OSX"
Demo project for previous release 2.3.0 built with Carthage also failed to work, see #155 . Yet it went beyond 'import' phase.
Some background info, Parse-SDK-iOS-OSX works fine with Carthage in my project. Just LiveQuery ran into problems.
Wondering what more steps I should take to make the demo project pass build phrase.
The text was updated successfully, but these errors were encountered: