Comments (2)
It would great if I could push this to Cocoapods but this is proving to be harder than it should.
First, I spent a couple of hours trying to update Cocoapods itself. There were issues with failing to build native extensions when using the usual approach using gem
. This seems to be a problem that's been around in various shapes for years. Installing via brew solved that issue.
Now, though, the podspec doesn't validate:
-> OCMock (3.9.2)
- NOTE | xcodebuild: note: Using codesigning identity override:
- NOTE | xcodebuild: note: Building targets in dependency order
- NOTE | xcodebuild: note: Target dependency graph (3 targets)
- NOTE | xcodebuild: note: Using codesigning identity override: -
- NOTE | xcodebuild: note: Signing static framework with --generate-pre-encrypt-hashes (in target 'Pods-App' from project 'Pods')
- ERROR | [watchOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
- NOTE | [watchOS] xcodebuild: ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/Library/Frameworks/XCTest.framework/XCTest, file is universal (x86_64,arm64) but does not contain the i386 architecture: /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/Library/Frameworks/XCTest.framework/XCTest
- NOTE | [watchOS] xcodebuild: clang: error: linker command failed with exit code 1 (use -v to see invocation)
- ERROR | [visionOS] unknown: Encountered an unknown error (Could not find a `visionos` simulator (valid values: ios, tvos, watchos). Ensure that Xcode -> Window -> Devices has at least one `visionos` simulator listed or otherwise add one.) during validation.
Analyzed 1 podspec.
[!] The spec did not pass validation, due to 2 errors.
I have no idea why there is a problem with watchOS, but the second error seems even more problematic. It looks like I can't validate the pod without having a visionOS simulator installed, which means – as far as I know – I'd need an Xcode beta.
I'm going to be offline for a week. If you have any ideas or suggestions how to fix these issues, please leave a comment here, and I'll look into it when I'm back.
from ocmock.
@erikdoe I believe you are right...that you'll have to install the VisionOS simulator, either that, or remove the visionos deployment target from the podspec.
Not sure on the WatchOS, but could try upping the minimum OS version...?
from ocmock.
Related Issues (20)
- Documentation link is dead / goes to porn HOT 1
- Unable to access class methods +(void) while I am write down test case for my own framework -(void) instance methods are working fine using OCMock HOT 2
- OCMock not loading for macOS test target
- OCMStub an instance mthod not work as expected HOT 4
- When I OCMProtocolMock a protocol(This protocol has a method),How can I invoke the real implementation of the method HOT 4
- Mac Catalyst Support HOT 1
- Incompatible function pointer types HOT 2
- A question about the andDo function
- Developer Account agnostic build scripts HOT 1
- Do not require xcpretty HOT 1
- ReadOnly Mock HOT 1
- OCMPartialMock initialized with NSConstantArray is crashing on Xcode 14.0b3 HOT 3
- `va_arg()` causes `EXC_BAD_ACCESS` in mocked objects HOT 5
- OCMVerify with CMTime argument fails on m1 mac. HOT 2
- Error in partial mock documentation HOT 1
- Request to provide Privacy Manifest file for OCMOCK SDK HOT 1
- `OCMVerifier.h` is not part of the public watchOS interface
- Xcode 15.3 build error on Intel Macs
- .andThrow(anException) will not throw the provided anException
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 ocmock.