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

Errors in Project-swift.h #49

Closed
jrgalan opened this issue Sep 2, 2015 · 2 comments
Closed

Errors in Project-swift.h #49

jrgalan opened this issue Sep 2, 2015 · 2 comments

Comments

@jrgalan
Copy link

jrgalan commented Sep 2, 2015

Having issues compiling in Xcode 7 beta 6 (Swift 2.0).

Getting a compile error:

Type argument 'CGImageRef' (aka 'struct CGImage *') is neither an Objective-C object nor a block type

Please see the attached screen. This is in the autogenerated "Project-swift.h" file.

Any ideas how to fix this? Kinda stuck here.

Thanks!

ram_swift_errors

@jrgalan
Copy link
Author

jrgalan commented Sep 2, 2015

Filed a bug report for this with Apple based on a discussion thread:

https://forums.developer.apple.com/thread/16289

It seems Xcode 7 beta 6 is treating Array as a type that can be represented faithfully in Objective-C. No bueno.

Workaround is as follows in RAMFrameItemAnimation:

@nonobjc
var animationImages : Array<CGImage> = Array()

and

@nonobjc
func playFrameAnimation(icon : UIImageView, images : Array<CGImage>) 

Hope that helps someone!

@0ber 0ber closed this as completed Dec 9, 2015
@tariq235
Copy link

Thanks for solution 👍

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

3 participants