Code Monkey home page Code Monkey logo

Comments (7)

qsd-faris avatar qsd-faris commented on June 10, 2024 1

@dfed yeah, it is definitely something up to the scheme.
However, for future reference, I am posting the popup that Xcode15 shows when running the scheme on the iOS simulator. Maybe someone else already faced this and will be able to help me:

Screenshot 2023-11-28 at 23 59 09

from valet.

dfed avatar dfed commented on June 10, 2024 1

@qsd-faris I asked around and got this particular bit of insight that may help you: you likely have an exclusion of arm64 somewhere in your build settings. This could be in either your xcodeproj or your Podfile. Running git grep arm64 on your repo will likely help you find out where this is.

You may also be able to confirm this theory by filtering your build log for x86_64 – if you see that while on an ARM Mac, you almost certainly are preventing building for arm64 and that is causing your issue with SPM.

from valet.

dfed avatar dfed commented on June 10, 2024 1

Closing this one out since we aren't getting much traction and I do not believe this is a Valet issue. Might be a better q for iOS dev support slacks.

from valet.

dfed avatar dfed commented on June 10, 2024

Can you reproduce this issue in a sample project you can share? Hard for me to intuit what could be wrong here.

This is unlikely to be an issue with Valet's Package configuration as it is not scheme-specific. I'm happy to help if I can but again, I'd need a sample project if my help is going to comprise more than wild guesses and directional advice.

To clarify a couple things:

  1. Does Valet build to simulator in any other scheme for you?
  2. Does Valet build to device in all schemes for you?

Given that you had to delete things from other linker flags after removing the Cocoapod integration, my wild guess is that your project is misconfigured: you likely accidentally brought CP-generated build flags into your Debug scheme, and you haven't found&fixed them all yet. (I have had the Other Linker Flags issue before. It's pretty easy to accidentally bring CP-generated stuff into your scheme)

If I were you: I'd delete + recreate my Debug scheme and see if that fixes it. If it does, run a diff on what changed: one of those changes was the problem.

from valet.

qsd-faris avatar qsd-faris commented on June 10, 2024

@dfed thanks for the quick answer. I have tried with sample project and everything was working fine.
Answer to both of your questions is - Yes, it builds.
I have also tried making my Debug scheme looks the same as other scheme but no success building it on simulator again.
It is weird how it looks for another library. There definitely must be something.

I was firstly facing this error on Xcode 14.2, and then switched to the Xcode 15. The issue is the same, but Xcode 15 automatically asks me to run the simulator with Rosetta, and if I do, it works! However, running Xcode 14.2 with Rosetta was not working.

from valet.

dfed avatar dfed commented on June 10, 2024

There's nothing about Valet that requires Rosetta. So there's something that's forcing you into this mode that is causing the issue 🤔

from valet.

qsd-faris avatar qsd-faris commented on June 10, 2024

@dfed thank you very much. I was also afraid that arm64 was the issue because I needed to put it in Excluded architectures because Xcode is showing errors for pods like: No such module podName without that...

What is weird here is that I have arm64 in excluded arch for each scheme and only one scheme is not running...

from valet.

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.