-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App doesn't compile with generic destination on xcodebuild #11
Comments
I can repro this on an example project, will update you if I find anything. |
Not sure why, but what I have found so far is that if you omit the |
I tried. but it crash when dragging the .app to simulator and try to run it. i think without sdk it takes the default which is probably the real device |
@emadhegab I will close this for now due to inactivity, will reopen if needed. |
Someting similar is happening to me when archiving in the CI (GitHub Actions, macos13, Xcode 15.0.1, but also happens in macos14 and Xcode 15.4):
If I remove Mockable from all module dependencies, comment imports and macros, then it works. The command looks like:
The other dependencies I use are:
Do you have any clue about what can be going on? I really like this library, I'd love to make it work :) |
A minor finding:
And my Package.swift like this:
Then it still works on CI, because the produced product is not included in the target, and at the same time is "easy" to activate it (just uncomment that part) without changing the actual codebase. Still trying to figure out the cause of this issue, I'll use this as a temporary workaround. |
@carlossolana-aily Have you tried adding |
No, I didn't! Now I reverted everything and it works! Thank you very much! :D |
@Kolos65 I have the same problem and I need to build for iphonesimulator. Adding
|
i have the same issue like emadhegab and -skipMacroValidation did not help, would be very nice if someone can support :-) |
I try to compile my app using this command
xcodebuild -scheme 'MyApp' -sdk 'iphonesimulator' -destination 'generic/platform=iOS Simulator'
but it gives me error always
protocos/MyAppService.swift:5:17: external macro implementation type 'MockableMacro.MockableMacro' could not be found for macro 'Mockable()'
It will run fine if changed the destination into -destination 'platform=iOS Simulator,name=iPhone'
but that will prevent me from using the .app file it generates in the E2E testing i have.
The text was updated successfully, but these errors were encountered: