Hello, I’am now working on s3 sample scene(i imported aws sdk 3.3.330.0 ver & unity 2018.1.6f1 ver).
first, I edited s3Example.cs(because it had error)
private IAmazonS3 Client
{
get
{
if (_s3Client == null)
{
Amazon.AWSConfigs.HttpClient = Amazon.AWSConfigs.HttpClientOption.UnityWebRequest;
_s3Client = new AmazonS3Client(Credentials, _S3Region);
}
//test comment
return _s3Client;
}
}
and it works well on unity editor and android.
but not on Iphone.
so, i copy and attach the x-code debugging message, below.
Please help me somebody
///////////////////////////////////
2018-08-03 14:44:02.772541+0900 AWS[5262:517641] [DYMTLInitPlatform] platform initialization successful
2018-08-03 14:44:02.796167+0900 AWS[5262:517518] Built from ‘2018.1/release’ branch, Version ‘2018.1.6f1 (57cc34175ccf)’, Build type ‘Release’, Scripting Backend ‘il2cpp’
2018-08-03 14:44:02.799164+0900 AWS[5262:517518] → registered mono modules 0x103dd8c60
→ applicationDidFinishLaunching()
2018-08-03 14:44:02.848166+0900 AWS[5262:517518] Metal GPU Frame Capture Enabled
2018-08-03 14:44:02.848494+0900 AWS[5262:517518] Metal API Validation Disabled
→ applicationDidBecomeActive()
GfxDevice: creating device client; threaded=1
Initializing Metal device caps: Apple A10 GPU
Initialize engine version: 2018.1.6f1 (57cc34175ccf)
UnloadTime: 0.312708 ms
Attached unity initializer to S3
AWSSDK.Examples.S3Example:Start()
(Filename: /Users/builduser/buildslave/unity/build/Runtime/Export/Debug.bindings.h Line: 43)
MissingMethodException: Method not found: ‘Default constructor not found…ctor() of Amazon.Util.Internal.PlatformServices.NetworkReachability’.
at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in :0
at Amazon.Util.Internal.PlatformServices.ServiceFactory…ctor () [0x00000] in :0
at Amazon.Util.Internal.PlatformServices.ServiceFactory…cctor () [0x00000] in :0
at Amazon.Runtime.Internal.UnityMainThreadDispatcher.ProcessRequests () [0x00000] in :0
at Amazon.Runtime.Internal.UnityMainThreadDispatcher.Update () [0x00000] in :0
Rethrow as TypeInitializationException: The type initializer for ‘Amazon.Util.Internal.PlatformServices.ServiceFactory’ threw an exception.
at Amazon.Runtime.Internal.UnityMainThreadDispatcher.ProcessRequests () [0x00000] in :0
at Amazon.Runtime.Internal.UnityMainThreadDispatcher.Update () [0x00000] in :0
(Filename: currently not available on il2cpp Line: -1)
NullReferenceException: A null value was found where an object instance was required.