Skip to content
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

iOS 5 Compatibility - GSEventCreateWithPList() #13

Open
dented42 opened this issue Nov 6, 2011 · 0 comments
Open

iOS 5 Compatibility - GSEventCreateWithPList() #13

dented42 opened this issue Nov 6, 2011 · 0 comments

Comments

@dented42
Copy link

dented42 commented Nov 6, 2011

I've attempted to build your UISpec for use in iOS 5 projects, and I have run into some problems.

The first problem is that UISpec doesn't work under ARC. The project will compile, but attempting to use it will fail as ARC requires that all method signatures that you use be declared at compile time. UISpec makes heavy use of method swizzling and other similar trickery to synthesize methods at runtime, so the only solution I can see is to disable ARC for ones test bundle/target.

The second and more important problem is a missing symbol at link time. It appears that under iOS 5, GSEventCreateWithPList() (in +(id)ApplicationEventWithTouch:(UITouch*)touch; in UIEvent+Synthesize.m), is no longer present. I have very little to no experience in this sort of thing, so I don't have a patch to submit :( .

The solution as I see it is to either eliminate +(id)ApplicationEventWithTouch:(UITouch*)touch; altogether, or to rewrite it so that it doesn't call GSEventCreateWithPList().

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

No branches or pull requests

1 participant