-
Notifications
You must be signed in to change notification settings - Fork 7
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
Undefined symbols for arm64 SDLUIKitDelegate #6
Comments
Wich version of openfl / lime do you use on mac ? |
Thanks for the quick reply, everything is on the current latest version for openfl and lime. I've not had to use legacy on ios before, is it a case of using the same -Dlegacy flag as Android do you know? |
By legacy i meant previous version of lime when SDL was not yet the system backend. I see in lime's changelog that sdl have been updated, maybe it's what causing the issue. I understant from the error you linked that the SDLUIKitDelegate class is not found, as if it changed name with the new version or got remove, I can't tell yet. It's strange. Sadly I don't have access to a mac anymore, I don't have my own and won't be able to buy one before weeks so I won't be able to fix this rapidly. One thing you can try is to set lime to 2.8.3 and try to run again. If it compile then the error probably come from that sdl upgrade. I'm sorry, I can't try to reproduce and fix this right now. |
I'll give that a go, A clean build of the project changed the problem from arm64 to armv7 but I'm assuming that it's essentially the same issue. I'll roll back lime and give that a go |
Unfortunately setting lime to 2.8.3 wasn't a solution in this case |
If there is a way that I can somehow help to narrow down this issue by proxy I am happy to do what I can to work out what's going on? I'm happy to poke around and try some things, I understand you personally can't look to reproduce at the present time but my client is looking for solutions ASAP. Give me some direction and I can head off and investigate ;) |
Hello, sorry for not answering this week. I got a mac and triied to reproduce your problem on a fresh new install but couldn't reproduce it, no linking error. The only error I got was a code signing error 'cause I don't have any iDevice yet, but normaly those errors occurs after linking I think. I use :
ios sdk 9.2 I really can't see why you have this error. Did you rebuild lime from source or the extension maybe ? |
Hi, thanks for taking the time. I'm going to go and double check what I'm compiling against on the Mac and hopefully this'll just turn out to be some dumb thing I've overlooked (I'm not experienced with OpenFL Mac development as I'm sure you've gathered!) I'll leave another message once I have some more information as to what I'm using. |
Hello, hope you found a solution. Check you use last lime (or at least a version based on SDL) and you use the master branch of this repo. this should work unless you use -Dlegacy to build your project If you use -Dlegacy, switch to the legacy branch of this repo and rebuild the extension. |
Just ran into this when building for iOS simulator, and we're also using -dLegacy.
Building on Mac, and since it's flixel it has to be on legacy. Gonna try now the legacy branch |
@TBaudon works with legacy branch. Need any help debugging this? |
Hello, thanks for your help. I don't think this is a bug actually. As specified in the readme, if you use the ios legacy backend you have to use the legacy branch of this extension. The problem is, legacy backend used a nme based class to handle every system related stuff, but then on the next lime version, SDL was used to replace this part. So I made two branch, one to use lime backend on legacy, and one to use sdl on master. The legacy branch is not outdated, it's called legacy to correspond to the lime backend's name. I don't really know how to do it in another way. Maybe at compile time, the extension would need to check wich backend is in use and generate the corresponding categorie class... It's easier to maintain two branch I think. |
Ah @TBaudon that makes sense! In haxe there's
Maybe that would be better, as the legacy branch doesn't have the recent improvements added ( such as java version forcing and string = null setting ) |
Hi, I'm using this extension with an android and iOS app. Android works just fine but iOS has an issue when compiling. It comes up with an error of:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_SDLUIKitDelegate", referenced from: ltmp27 in libfacebook.a(a5504ceb_SDLUIKitDelegate+ExtnesionFacebook.o) l_OBJC_$_CATEGORY_SDLUIKitDelegate_$_ExtensionFacebook in libfacebook.a(a5504ceb_SDLUIKitDelegate_ExtensionFacebook.o)
Any idea what might be the cause of this? Something in my setup, or something with the code?
The text was updated successfully, but these errors were encountered: