krzysztofzablocki / Inject

Hot Reloading for Swift applications!
MIT License
2.1k stars 114 forks source link

Could not find module for target 'x86_64-apple-ios-simulator' #74

Closed agisilaos closed 1 year ago

agisilaos commented 1 year ago

Hello there, I would love to integrate Inject into my project but as I follow the steps to do so, when I try to run the project using a simulator I get this error. I'm using Xcode 14.3. Not exactly sure what am I missing but any help would be greatly appreciated.

Could not find module for target 'x86_64-apple-ios-simulator'

Excluded architectures in the project look like this:

Screenshot 2023-04-28 at 15 44 59
johnno1962 commented 1 year ago

Hi, Is this an Intel or ARM Mac? What version of iOS are you simulating for?

agisilaos commented 1 year ago

@johnno1962 This is an M1 Mac and I tried to use both iOS 16.4 and 16.2!

johnno1962 commented 1 year ago

Seeing arm64 excluded is a bit fishy. Are you sure your architectures are set to "Standard Architectures" and removed any "Excluded Architectures" (unless it is necessary for your build)?

agisilaos commented 1 year ago

@johnno1962 Architectures Look like this:

Screenshot 2023-04-28 at 16 09 11
johnno1962 commented 1 year ago

So, you have a project that build and runs but when you add the Inject project it no longer does? That seems very unusual as Inject itself is relatively straightforward. I'm not sure there is much more help I can provide without being at your desk, this seems to be a more general Xcode question.

agisilaos commented 1 year ago

So, you have a project that build and runs but when you add the Inject project it no longer does

That's exactly the situation...

johnno1962 commented 1 year ago

It's more likely to be specific to your project than specific to the Inject Swift Package. Have you tried with something simpler as a starting point?

agisilaos commented 1 year ago

I tried with a new project and it works just fine, this is kind of confusing tbh with you.

I also tried using a device and that works, but then I tried to "track" the project using Injection and it won't track the project. It's a monorepo using xcworkspace

johnno1962 commented 1 year ago

Yeah, your project has just tickled an an Xcode bug. How do you mean "track". Do you mean "trace"? Have you considered manually adding the Inject sources to your project? There aren't that many of them.

agisilaos commented 1 year ago

@johnno1962 Sorry for the delay on this. I meant trace yes. It doesn't seem to work. I may need to investigate that a bit more and open a fresh issue. Thank you so much for your help already.

johnno1962 commented 1 year ago

What do you want to trace and how are you trying to do it? It's not a massively requested or supported part of the application as it is technically quite challenging.