Comments (7)
Yep I saw the mess that @mattt did with using __IPHONE_OS_VERSION_MIN_REQUIRED
(Deployment Target) instead of using __IPHONE_OS_VERSION_MAX_ALLOWED
(Base SDK), and this choice of his really annoys me.
See also comments on #34.
I really don't like bumping the Deployment Target of OHHTTPStubs
to iOS7 just so that the Unit Tests that uses AFNetworking
can compile, because not everyone uses AFNetworking 2.0 (And because of this poor choice of design by mattt of forcing us to have a Deployment Target iOS7+ for all apps that want using AFN2, I'm considering totally dropping the use of AFN2 in my projects, I really can afford dropping support for iOS6 in my apps now).
I really want OHHTTPStubs
to still be able to work with users running iOS5 and iOS6, so forcing a Deployment Target to be iOS7+ is out of the question, contrary to what @mattt did with AFN2. Instead, I am considering removing the Unit Tests that use AFN2 completely, and the AFN submodule (and just keep my own Unit Tests with NSURLSession
and NSURLConnection
and all). Or maybe keep my AFN submodule used for AFN Unit Tests to point to AFN 1.x. Or maybe simply wait for Travis-CI to migrate its VM to Xcode5 which should be quite soon.
from ohhttpstubs.
AFN2 can be used with 6.0+ deployment target, only NSURLSession-related part requires 7.0.
But this will require using CocoaPods instead of submodules.
from ohhttpstubs.
Yep, but I do not want to force this dependency just for my Unit Tests. Because again, I don't have a dependency between OHHTTPStubs
and AFNetworking
, it can totally be used with OR without AFN.
Adding a dependency to AFN2 in the podspec just for my Unit Tests to run, even if users of my lib don't use AFN, seems totally nonsense.
I may revert my submodule pointing to AFN and try to use a Podfile instead, with no pod for the main (lib) target and "AFNetworking", "~> 2.0"
for the target :Tests
, will give it a try some day soon. But the more I think about it the more I realize I may drop all the Unit Tests related to AFN itself (as long as my coverage remains the sameβ¦)
from ohhttpstubs.
I agree with you, closing π
from ohhttpstubs.
AFNetworking is in the right way to solve this see AFNetworking/AFNetworking#1412
Still some conversions from MIN_REQUIRED
to MAX_ALLOWED
required in his code, but hopefully it will be fixed soon
from ohhttpstubs.
That's great to know @AliSoftware
from ohhttpstubs.
My submodule now points to my own AFN2 fork β which fixes the problem with AFN2 conditional compilation issues β so Travis-CI is back to green and passes happily now π
Waiting for my PR AFNetworking/AFNetworking#1486 to be merged (to then switch back to the official repo and remove my fork).
from ohhttpstubs.
Related Issues (20)
- Mocktail support HOT 2
- pod 'AFNetworking', '~> 3.0'
- Incorrect example for onStubActivation on Usage Examples page
- [wiki] OHHTTPStubsResponse to HTTPStubsResponse with Swift HOT 4
- Module 'OHHTTPStubs' has no member named 'removeAllStubs' in 9.0.0 HOT 2
- Xcode Analyze: Logic error
- N HOT 1
- Travis CI has seemed to be moved. HOT 3
- How to use in a UITest HOT 9
- OHHTTPStubs with SPM in Xcode 12.5 HOT 1
- Fluent API for stubbing
- how do i use it HOT 1
- Liscense HOT 1
- 4 da world HOT 1
- - [ ] Submitting a maybeaplle @mtodd []()![image](https://user-images.githubusercontent.com/122186144/230750410-f43c3ffb-f6a7-4bd4-9970-8b065670ea28.jpeg)@craystyle1212
- Won't build with Carthage and Xcode 14.3 HOT 7
- App Crashes on Device When OHHTTPStubsSwift Added to iOS Framework via Swift Package Manager HOT 1
- FEATURE REQUEST: Ability to control response stream
- `canInitWithRequest` not called in Xcode 15 preventing stubbing being setup correctly
- Request to provide Privacy Manifest file for OHHTTPStubs SDK HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ohhttpstubs.