-
Notifications
You must be signed in to change notification settings - Fork 268
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
Run-time Arguments Supported with Swift Assembly? #293
Comments
Hi, It's because runtime arguments must be objective-c object, but you passing String. Try to replace String with NSString (String would be converted into NSString automatically by swift compiler) |
Thanks, Alex! That was it. Working great now. |
Hey! Sorry for posting on this issue, but I'm currently running into the same issue with the following code:
Any idea what could be wrong? Like you see I'm already doing the workaround with NSString but it still crashes with above exception...
|
Hello @tspecht it is probably better to post on StackOverflow but in either case please include the crash/console output. |
@jasperblues thanks for the quick response! I added the crashlog and will also post on Stackoverflow, thought asking here directly would be more direct ;) |
@tspecht |
@tspecht So that means:
If you interested in the behind-the-scenes info on the reason for this it is because:
Therefore: At startup we are just capturing information about which parameter is routed where. Typhoon is a typical introspective/reflective style of DI container -> Rules/blue-prints first->post-processors->instantiation of components. You're welcome to ask here on GH, just that on StackOverflow you might get a larger audience and its indexed well by Google too. |
Hi,
I'm attempting to update my project to use Swift for all my TyphoonAssembly code. I've had some success, but I'm stuck trying to pass run-time arguments to a controller. Here's my code:
That last line is causing a crash. Specifically:
Is this not supported? Thanks.
The text was updated successfully, but these errors were encountered: