line / line-sdk-unity

Provides a modern way of implementing LINE APIs in Unity games, for iOS and Android.
https://developers.line.biz/
Apache License 2.0
117 stars 24 forks source link

Compile fails with Android platform build #8

Closed kshoji closed 5 years ago

kshoji commented 5 years ago

Is it a security issue?

NO.

What did you do?

Compile with Android platform build on Unity Editor.

What did you expect?

Compile succeeds with Android build.

What happened actually?

Compile fails with Android build. The error message is:

Assets/LineSDK/Editor/Carthage/CarthageInstalling.cs(22,19): error CS0234: The type or namespace name `iOS' does not exist in the namespace `UnityEditor'. Are you missing an assembly reference?

This file must be specified with #if UNITY_IOS ... #endif https://github.com/line/line-sdk-unity/blob/master/LINE_SDK_Unity/Assets/LineSDK/Editor/Carthage/CarthageInstalling.cs

Your environment?

Sample project

none.

onevcat commented 5 years ago

@kshoji Thanks for reporting this.

May I know the system you are using for running Unity, is it Windows or macOS?

onevcat commented 5 years ago

Can you try whether this PR (https://github.com/line/line-sdk-unity/pull/9) could fix your issue? Thank you!

kshoji commented 5 years ago

@onevcat

May I know the system you are using for running Unity, is it Windows or macOS? I'm using Unity on macOS.

And, the PR #9 fixed this issue. Thanks!

onevcat commented 5 years ago

Thanks for your feedback! I will release a new version soon for this.