Skip to content

Detect Simulator using pragma. Fixes/improves Issue #834 - #835

Open
JoeFerrucci wants to merge 1 commit into
SVGKit:3.xfrom
JoeFerrucci:patch-2
Open

JoeFerrucci wants to merge 1 commit into
SVGKit:3.xfrom
JoeFerrucci:patch-2

Conversation

@JoeFerrucci

Copy link
Copy Markdown

Use TARGET_IPHONE_SIMULATOR instead of checking for string prefix.

Fixes/improves #834

Use TARGET_IPHONE_SIMULATOR instead of checking for string prefix. Fixed SVGKit#834
@adamgit

adamgit commented Jun 28, 2024

Copy link
Copy Markdown
Contributor

I'm sure we originally had this, and there was some reason it didn't work ... maybe it was a bug in Xcode that is now fixed? ... If I remember correctly: Xcode would mark this as true "always" when you tried to auto-build a merged binary .so file (which our custom build script does).

@JoeFerrucci

Copy link
Copy Markdown
Author

I'm sure we originally had this, and there was some reason it didn't work ... maybe it was a bug in Xcode that is now fixed? ... If I remember correctly: Xcode would mark this as true "always" when you tried to auto-build a merged binary .so file (which our custom build script does).

I’ll test it in Release and on device and if it returns true always, I’ll close this.

@adamgit

adamgit commented Jun 28, 2024 via email

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants