Giter Club home page Giter Club logo

Comments (2)

erikdoe avatar erikdoe commented on May 24, 2024

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.

LowAmmo avatar LowAmmo commented on May 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.