-
Notifications
You must be signed in to change notification settings - Fork 96
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
Installation via CocoaPods is Broken #94
Comments
Temporary solution was to downgrade to https://github.com/WeTransfer/Mocker/releases/tag/2.2.0 |
This issue is stale because it has been open for 30 days with no activity. Remove the Stale label or comment or this will be closed in 10 days. |
Bump |
Any news on this problem... I can't run any app with Mocker installed via CocoaPods, error appears at launch:
|
This is still a problem 😕 can we prevent the bot from auto closing issues @AvdLee ? It's not working correctly, it's not respecting the rule it says 😖 |
@letatas @rogerluan sorry for this. Unfortunately, we currently don't have time to add better support for CocoaPods. We're using SPM heavily and recommend using that instead. I understand this isn't always possible, so feel free to open a PR to fix support for CocoaPods accordingly. |
Bump, don't close 🙏 |
@rogerluan it's too bad it hasn't been picked up yet, I feel sad about that! Have you had time to look up a potential solution to this by any chance? |
Thanks for the follow up @AvdLee - I haven't investigated the CocoaPods issue because I was able to upgrade my whole infrastructure to use SPM instead 🙈 So that became a no-problem to me 😅 |
Ping |
Will see if I can take a look at this one. |
Alright, this is the output from Podfile
Output
|
After that, however, I can |
@BasThomas Thanks for helping us get to the bottom of this issue! 🙏 The issue I'm describing only happens after #89 got merged, so you gotta use a more recent version of Mocker (2.2.0 is quite dated) - in fact, I posted here that using 2.2.0 would make everything work as expected again #94 (comment) 😄. Here's a project using The crashlog from the app launch (I ran on Simulator, but it crashes on physical devices as well):
|
d'oh. I see. Just pasted the version 2.20 from the README; I guess we should update that as well. Will try again! |
Trying this again... Podfile
Output
|
OK, recreating this now. Looking into it. |
It's interesting how this runtime crash occurs even when nothing has been imported related to Mocker. |
I think what we'd need to do is to weak-link |
This does seem to work after all! |
Resolves #94 Not requiring this weakly means it'll attempt to load on every run; but XCTest will not be available when running the application directly.
The pull request #102 that closed this issue was merged and released as part of Release 2.5.4 🚀 Generated by GitBuddy |
Little does the bot know that the CocoaPods release itself isn't exactly out yet, but 😛 |
It should! CI pushes the release to the CocoaPods branch too |
oh wow! 😀 |
Hm, 2.5.2 is the latest available on CocoaPods https://github.com/CocoaPods/Specs/tree/master/Specs/2/a/c/Mocker |
So perhaps the bot needs a visit to the doctor. 😛 |
The bot is not drunk, just a bit shy to tell us!
We need to update the pods token is what I see. However, let's wait till we conclude here: https://twitter.com/twannl/status/1432253926657626113 |
The pull request #102 that closed this issue was merged and released as part of Release 2.5.4 🚀 Generated by GitBuddy |
Follow up on #88 and #89
#89 actually resolved the build-time issue but it actually crashes the app during runtime.
I tried importing XCTest.framework in my project (embed & sign, embed without signing, do not embed), but none of these options worked for me.
The text was updated successfully, but these errors were encountered: