Search Unity

Windows Universal Build - "API _Buy in __internal.dll is not supported for this application type"

Discussion in 'Windows' started by jkampitakis, Jun 13, 2016.

  1. jkampitakis

    jkampitakis

    Joined:
    Dec 27, 2015
    Posts:
    56
    Hello, in my company we created a game and we built it for Universal Windows 10 but we got a
    rejection by the store because of the following errors:

    Error Found: The supported APIs test detected the following errors:

    API _Buy in __internal.dll is not supported for this application type. AssemblyCSharp.dll calls this API.

    API _CanBuy in __internal.dll is not supported for this application type. AssemblyCSharp.dll calls this API.

    API _LoadProducts in __internal.dll is not supported for this application type. AssemblyCSharp.dll calls this API.

    API _RestoreProducts in __internal.dll is not supported for this application type. AssemblyCSharp.dll calls this API.


    Impact if not fixed: Using an API that is not part of the Windows SDK for Windows Store apps violates the Windows Store


    We use in app purchases in our game but we couldn't test them locally as we had runtime errors so we searched the internet to find a solution. What we found is that you can test the in-app-purchases only AFTER you have uploaded a release build in windows store..

    So, the problem we have now is why the in-app-purchases give that error and what we have to do in order to fix that.

    We use Unity 5.3.5p1 and VisulStudio Community2015 update2.



    Also, from inside VisualStudio if we choose "Analyze -> Run Code Analysis -> On Solution" we get the following warnings:


    Restoring NuGet packages...

    To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages during build.'

    1>------ Rebuild All started: Project: Poia Leksi, Configuration: Master ARM ------

    1> UnityInstallationDir "C:\Program Files\Unity\Editor".

    1> UnityWSAPlayerDir "C:\Program Files\Unity\Editor\Data\PlaybackEngines\MetroSupport".

    1> UnityProjectDir "C:\Users\kavlikos\Documents\worditout".

    1> Copying unprocessed assemblies...

    1> Running AssemblyConverter...

    1> AssemblyConverter done.

    1>C:\Users\kavlikos\Documents\worditout\build\Poia Leksi\MainPage.xaml.cs(36,57,36,81): warning CS0169: The field 'MainPage.onRotationChangedHandler' is never used

    1> Poia Leksi -> C:\Users\kavlikos\Documents\worditout\build\Poia Leksi\bin\ARM\Master\Poia Leksi.exe

    1> Running Code Analysis...

    1>MSBUILD : warning CA1001: Microsoft.Design : Implement IDisposable on 'App' because it creates members of the following IDisposable types: 'AppCallbacks'. If 'App' has previously shipped, adding new members that implement IDisposable to this type is considered a breaking change to existing consumers.

    1> Code Analysis Complete -- 0 error(s), 1 warning(s)

    1> Starting .NET Native compilation

    1> Processing application code

    1>C:\Users\kavlikos\Documents\worditout\build\Poia Leksi\Resources.System.Linq.Expressions.rd.xml(35): warning : ILTransform_0027: Method 'CreateLambda' within 'System.Linq.Expressions.Expression' could not be found.

    1>C:\Users\kavlikos\Documents\worditout\build\Poia Leksi\Resources.System.Linq.Expressions.rd.xml(91): warning : ILTransform_0027: Method 'ParameterIsAssignable' within 'System.Linq.Expressions.Expression' could not be found.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3217(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'Windows.Foundation.HResult Windows.Foundation.IAsyncInfo.get_ErrorCode()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3220(System.Int64, System.Int64*)' at IL offset 0x17 referring to invalid Windows Runtime method 'Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.Store.ILicenseInformation.add_LicenseChanged(Windows.ApplicationModel.Store.LicenseChangedEventHandler)'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3221(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'Windows.Foundation.DateTime Windows.ApplicationModel.Store.ILicenseInformation.get_ExpirationDate()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3224(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'Windows.Foundation.Collections.IMapView<System.String, Windows.ApplicationModel.Store.ProductLicense> Windows.ApplicationModel.Store.ILicenseInformation.get_ProductLicenses()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3225(System.Int64, System.Int64*)' at IL offset 0x12 referring to invalid Windows Runtime method 'System.Void Windows.ApplicationModel.Store.ILicenseInformation.remove_LicenseChanged(Windows.Foundation.EventRegistrationToken)'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3232(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'Windows.Foundation.DateTime Windows.ApplicationModel.Store.IProductListing2.get_SaleEndDate()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3234(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'Windows.Foundation.Uri Windows.ApplicationModel.Store.IProductListingWithMetadata.get_ImageUri()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3235(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'Windows.Foundation.Collections.IIterable<System.String> Windows.ApplicationModel.Store.IProductListingWithMetadata.get_Keywords()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3238(System.Int64, System.Int64*)' at IL offset 0x17 referring to invalid Windows Runtime method 'Windows.Foundation.EventRegistrationToken Windows.ApplicationModel.Store.LicenseInformation.add_LicenseChanged(Windows.ApplicationModel.Store.LicenseChangedEventHandler)'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3239(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'Windows.Foundation.DateTime Windows.ApplicationModel.Store.LicenseInformation.get_ExpirationDate()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3242(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'Windows.Foundation.Collections.IMapView<System.String, Windows.ApplicationModel.Store.ProductLicense> Windows.ApplicationModel.Store.LicenseInformation.get_ProductLicenses()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3243(System.Int64, System.Int64*)' at IL offset 0x12 referring to invalid Windows Runtime method 'System.Void Windows.ApplicationModel.Store.LicenseInformation.remove_LicenseChanged(Windows.Foundation.EventRegistrationToken)'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3248(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'Windows.Foundation.Uri Windows.ApplicationModel.Store.ProductListing.get_ImageUri()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3250(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'Windows.Foundation.Collections.IIterable<System.String> Windows.ApplicationModel.Store.ProductListing.get_Keywords()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3254(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'Windows.Foundation.DateTime Windows.ApplicationModel.Store.ProductListing.get_SaleEndDate()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3256(System.Int64, System.Int64*)' at IL offset 0x12 referring to invalid Windows Runtime method 'Windows.Foundation.Uri Windows.Foundation.IUriRuntimeClass.CombineUri(System.String)'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3257(System.Int64, System.Int64*)' at IL offset 0x17 referring to invalid Windows Runtime method 'System.Boolean Windows.Foundation.IUriRuntimeClass.Equals(Windows.Foundation.Uri)'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3276(System.Int64, System.Int64*)' at IL offset 0x12 referring to invalid Windows Runtime method 'Windows.Foundation.Uri Windows.Foundation.Uri.CombineUri(System.String)'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3277(System.Int64, System.Int64*)' at IL offset 0x17 referring to invalid Windows Runtime method 'System.Boolean Windows.Foundation.Uri.Equals(Windows.Foundation.Uri)'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3278(System.Int64, System.Int64*)' at IL offset 0x7 referring to invalid Windows Runtime method 'System.String Windows.Foundation.Uri.EscapeComponent(System.String)'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3279(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'System.String Windows.Foundation.Uri.AbsoluteCanonicalUri.get()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3280(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'System.String Windows.Foundation.Uri.AbsoluteUri.get()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3281(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'System.String Windows.Foundation.Uri.DisplayIri.get()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3282(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'System.String Windows.Foundation.Uri.DisplayUri.get()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3283(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'System.String Windows.Foundation.Uri.Domain.get()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3284(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'System.String Windows.Foundation.Uri.Extension.get()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3285(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'System.String Windows.Foundation.Uri.Fragment.get()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3286(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'System.String Windows.Foundation.Uri.Host.get()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3287(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'System.String Windows.Foundation.Uri.Password.get()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3288(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'System.String Windows.Foundation.Uri.Path.get()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3289(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'System.Int32 Windows.Foundation.Uri.Port.get()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3290(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'System.String Windows.Foundation.Uri.Query.get()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3291(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'Windows.Foundation.WwwFormUrlDecoder Windows.Foundation.Uri.QueryParsed.get()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3292(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'System.String Windows.Foundation.Uri.RawUri.get()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3293(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'System.String Windows.Foundation.Uri.SchemeName.get()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3294(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'System.Boolean Windows.Foundation.Uri.Suspicious.get()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3295(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'System.String Windows.Foundation.Uri.UserName.get()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3296(System.Int64, System.Int64*)' at IL offset 0xB referring to invalid Windows Runtime method 'System.String Windows.Foundation.Uri.ToString()'.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int64 UnityEngine.Internal.$MethodUtility.$Invoke3297(System.Int64, System.Int64*)' at IL offset 0x7 referring to invalid Windows Runtime method 'System.String Windows.Foundation.Uri.UnescapeComponent(System.String)'.

    1> Computing application closure and generating interop code

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method '_LoadProducts!__Internal' in assembly 'Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method '_CanBuy!__Internal' in assembly 'Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method '_Buy!__Internal' in assembly 'Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs.

    1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method '_RestoreProducts!__Internal' in assembly 'Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs.

    1> Generating serialization code

    1> Compiling interop code

    1> Cleaning up unreferenced code

    1> Generating native code

    1> Generating fixups for native code

    ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========








    Any help would be greatly appreciated..

    Kind regards,
    John.
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,674
    This is pretty much spot on on what's wrong. You seem to be pinvoking into "__Internal", which is not supported using .NET Scripting backend. Where are these functions defined?
     
    jkampitakis likes this.
  3. jkampitakis

    jkampitakis

    Joined:
    Dec 27, 2015
    Posts:
    56
    We are just using the Unity InAppPurchases plugin... Screen Shot 2016-06-13 at 14.42.15.png
     
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,899
    AssemblyCSharp.dll is a user script, look for DllImport("__Internal")
     
    jkampitakis likes this.
  5. jkampitakis

    jkampitakis

    Joined:
    Dec 27, 2015
    Posts:
    56

    There are some plugins in our projects that make use of the DllImport("__Internal")


    Find all "__Internal", Subfolders, Find Results 1, Entire Solution, ""

    C:\Users\kavlikos\Documents\worditout\Assets\FacebookSDK\SDK\Scripts\Mobile\IOS\IOSWrapper.cs(225): [DllImport ("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\FacebookSDK\SDK\Scripts\Mobile\IOS\IOSWrapper.cs(232): [DllImport ("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\FacebookSDK\SDK\Scripts\Mobile\IOS\IOSWrapper.cs(237): [DllImport ("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\FacebookSDK\SDK\Scripts\Mobile\IOS\IOSWrapper.cs(242): [DllImport ("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\FacebookSDK\SDK\Scripts\Mobile\IOS\IOSWrapper.cs(245): [DllImport ("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\FacebookSDK\SDK\Scripts\Mobile\IOS\IOSWrapper.cs(248): [DllImport ("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\FacebookSDK\SDK\Scripts\Mobile\IOS\IOSWrapper.cs(256): [DllImport ("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\FacebookSDK\SDK\Scripts\Mobile\IOS\IOSWrapper.cs(267): [DllImport ("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\FacebookSDK\SDK\Scripts\Mobile\IOS\IOSWrapper.cs(283): [DllImport ("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\FacebookSDK\SDK\Scripts\Mobile\IOS\IOSWrapper.cs(289): [DllImport ("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\FacebookSDK\SDK\Scripts\Mobile\IOS\IOSWrapper.cs(296): [DllImport ("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\FacebookSDK\SDK\Scripts\Mobile\IOS\IOSWrapper.cs(299): [DllImport ("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\FacebookSDK\SDK\Scripts\Mobile\IOS\IOSWrapper.cs(302): [DllImport ("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\FacebookSDK\SDK\Scripts\Mobile\IOS\IOSWrapper.cs(310): [DllImport ("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\FacebookSDK\SDK\Scripts\Mobile\IOS\IOSWrapper.cs(318): [DllImport ("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\FacebookSDK\SDK\Scripts\Mobile\IOS\IOSWrapper.cs(321): [DllImport ("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\FacebookSDK\SDK\Scripts\Mobile\IOS\IOSWrapper.cs(324): [DllImport ("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\FacebookSDK\SDK\Scripts\Mobile\IOS\IOSWrapper.cs(327): [DllImport ("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\FacebookSDK\SDK\Scripts\Mobile\IOS\IOSWrapper.cs(330): [DllImport ("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\LunarConsole\Scripts\LunarConsole.cs(203): [DllImport("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\LunarConsole\Scripts\LunarConsole.cs(206): [DllImport("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\LunarConsole\Scripts\LunarConsole.cs(209): [DllImport("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\LunarConsole\Scripts\LunarConsole.cs(212): [DllImport("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\LunarConsole\Scripts\LunarConsole.cs(215): [DllImport("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\Scinfu\Plugins\iOS\ScinfuStoreKit\ScinfuStoreKit.cs(38):[DllImport ("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\Scinfu\Plugins\iOS\ScinfuStoreKit\ScinfuStoreKit.cs(93):[DllImport ("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\Scinfu\Plugins\iOS\ScinfuStoreKit\ScinfuStoreKit.cs(105):[DllImport ("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\Scinfu\Plugins\iOS\ScinfuStoreKit\ScinfuStoreKit.cs(148):[DllImport ("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\UTNotifications\Src\iOS\IOSManagerImpl.cs(752): [DllImport("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\UTNotifications\Src\iOS\IOSManagerImpl.cs(755): [DllImport("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\UTNotifications\Src\iOS\IOSManagerImpl.cs(758): [DllImport("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\UTNotifications\Src\iOS\IOSManagerImpl.cs(761): [DllImport("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\UTNotifications\Src\iOS\IOSManagerImpl.cs(764): [DllImport("__Internal")]

    C:\Users\kavlikos\Documents\worditout\Assets\UTNotifications\Src\iOS\IOSManagerImpl.cs(767): [DllImport("__Internal")]

    Matching lines: 34 Matching files: 4 Total files searched: 452


    What should we do? Delete or edit something?
     
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,674
    They seem to be iOS specific. Wrap them in "#if UNITY_IOS/#endif".
     
    jkampitakis likes this.
  7. jkampitakis

    jkampitakis

    Joined:
    Dec 27, 2015
    Posts:
    56
    Thank you all for your help, problem solved using the #if UNITY_IOS in ScinfuStoreKit.cs