appsflyer-unity-plugin
appsflyer-unity-plugin copied to clipboard
Cannot build with xCode 15.3
Hello!
I just updated xCode to 15.3 and there seems to be an ISO C99 issue with the AppsFlyer+AppController.mfile.
The attached image is a screenshot from xCode 15.2 where the issue
Type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int
marked as a warning has now become an error. The fix seems to be just a simple cast, but still the build fails.
I am using an older version of the SDK, but I have checked the repo and the code for the specific method hasn't changed yet. Could you please take a look at it?
Cheers!
I have the same problem, waiting for a fix.
I have got the same issue.
Also seeing this.
As a temporary workaround, seems that accepting Xcode's suggested fix for that error allows you to build at least. To save doing that every build you can make the change to the package version in /Library/PackageCache/appsflyer-unity-plugin@xxxxxxxxxx/AppsFlyer+AppController.m (line 144 in the version I have), just add int before (UIBackgroundFetchResult), i.e.;
return ((BOOL(*)(id, SEL, UIApplication*, NSDictionary*, int(UIBackgroundFetchResult)))__original_didReceiveRemoteNotification_Imp)(self, _cmd, application, userInfo, nil);
Having the same issue!
The fix above works!
The previous method definition is
BOOL __swizzled_didReceiveRemoteNotification(id self, SEL _cmd, UIApplication* application, NSDictionary* userInfo, void (^UIBackgroundFetchResult)(void)).
Therefore, I modified it to:
return ((BOOL()(id, SEL, UIApplication, NSDictionary*,void (^)(void)))__original_didReceiveRemoteNotification_Imp)(self, _cmd, application, userInfo, nil);
It seems to be fine.
when sdk will be updated?
same issue, need fix ASAP
same issue, need fix ASAP
If you need a fix ASAP, downgrade Xcode to 15.2. Another fix has already been mentioned.
Have the same issue, fix the error please...
Downgraded to xcode 15.2 to avoid the suggested workaround, waiting for a fix 🙏
+1
It seems this issue has been fixed at the Appsflyer's ios SDK (https://support.appsflyer.com/hc/en-us/articles/115001224823-AppsFlyer-iOS-SDK-release-notes)
Could we please have the this fix on unity's SDK as well?
+1 waiting for a resolution on this...
Is this resolved with the latest release?
Hi, we will release the fix with a new version
It's obvious that it will be fixed in a new version. We won't be able to update our apps in two weeks time. Updating and releasing them also takes time. We'd like to have a timeframe though, please.
till the end of the week
released in version 6.14.0