Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/icanzilb/macro-bad-access
https://github.com/icanzilb/macro-bad-access
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/icanzilb/macro-bad-access
- Owner: icanzilb
- Created: 2023-10-09T05:16:25.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-09T08:45:22.000Z (about 1 year ago)
- Last Synced: 2023-10-10T06:29:51.894Z (about 1 year ago)
- Language: Swift
- Size: 174 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# macro-bad-access
Run the binary, if it doesn't crash right away just run it few times in a row. I have it crashing in Xcode 15.0 and 15.1
I've implemented the same logic with actors and locks, throwing errors and returning a result, controlling the flow with guard vs if... but it consistently compiles ok but crashes at runtime.
The tests showcase the expected expansions.
![](etc/crash.png)
I haven't seen the crash happen in tests.
Additionally, some of the generated source is lost in testMacroConfig() or the expansion doesn't work the same way in tests and in "real" code 🤦🏽♂️