AliSoftware / OHHTTPStubs

Stub your network requests easily! Test your apps with fake network data and custom response time, response code and headers!
MIT License
5.04k stars 601 forks source link

Ohhttpstubs version 5.2.2-swift3 #234

Closed raktec closed 7 years ago

raktec commented 7 years ago

i got error module file was created by an older version of the compiler rebuild Ohhttpstubs

AliSoftware commented 7 years ago

That's a problem due to Carthage (and the fact that Carthage insists on using pre-built binaries if available, despite the Swift ABI still not being stable and changing on each Xcode release)

The official solution for that is to use the --no-use-binaries flag of Carthage.

I can't rebuilt that binary (as you did) for everybody, because then people using Xcode beta with have a compatible binary but people not using the beta will then be the one having the problem. There's no solution supported by Carthage to support both people using swift 3.0 and 3.1 or multiple Xcode versions… apart from not using the pre built binary and rebuilding yourself each time (there's a bunch of issues about that opened on the Carthage repo btw)

In the future I may stop releasing pre built binaries for Carthage, enforcing people to rebuild on their end, as this Carthage limitation has bitten too many people at every new Swift or Xcode version already.

raktec commented 7 years ago

Thanks , Now its working

On Wed, Feb 1, 2017 at 2:18 AM, AliSoftware notifications@github.com wrote:

That's a problem due to Carthage (and the fact that Carthage insists on using pre-built binaries if available, despite the Swift ABI still not being stable and changing on each Xcode release)

The official solution for that is to use the --no-use-binaries flag of Carthage.

I can't rebuilt that binary (as you did) for everybody, because then people using Xcode beta with have a compatible binary but people not using the beta will then be the one having the problem. There's no solution supported by Carthage to support both people using swift 3.0 and 3.1 or multiple Xcode versions… apart from not using the pre built binary and rebuilding yourself each time (there's a bunch of issues about that opened on the Carthage repo btw)

In the future I may stop releasing pre built binaries for Carthage, enforcing people to rebuild on their end, as this Carthage limitation has bitten too many people at every new Swift or Xcode version already.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AliSoftware/OHHTTPStubs/issues/234#issuecomment-276487273, or mute the thread https://github.com/notifications/unsubscribe-auth/AAu-zSBCu4LLlAhz_Q4ljNJJ5ycShOi8ks5rX54bgaJpZM4LzHV4 .

-- Thanks & Regards, Rakesh Kumar Sharma Skype :raktec Gmail : raktec@gmail.com Mobile: +91- 886-013-8161