inbrainai / unitysdk

Monetize your app with the inBrain SDK using Unity.
MIT License
3 stars 1 forks source link

InBrain version 2.0.0 won't build on iOS #3

Closed jsvitek closed 1 year ago

jsvitek commented 1 year ago

Hello, building iOS ipa will always fail when using InBrain version 2.0.0 with error message: Build input file cannot be found: 'path/to/xcode/project/Libraries/Plugins/iOS/InBrainSurveys/Source/InBrainSurveys-Bridging-Header.h'. Did you forget to declare this file as an output of a script phase or a custom build rule which produces it?

I may have missed something from the documentation but I only found that all that needs to be done is import .unitypackcage (apart from the actual implementation). Furthermore renaming folder InBrainSurveys_SDK_Swift in Plugins/iOS to InBrainSurveys fixes the issue but the issue I mentioned here is still present.

Unity version: 2020.3.38.f1 InBrain version: v.2.0.0

susslik commented 1 year ago

Hello @jsvitek - thanks for reporting this! We will take a look at the trouble and fix that asap! Will keep you posted!

tustanivsky commented 1 year ago

@jsvitek The .unitypackcage for InBrain SDK v2.0.0 doesn't contain InBrainSurveys_SDK_Swift folder anymore (it was actually renamed to InBrainSurveys in the most recent release). I guess this issue could arise after updating the plugin from some older version, so you can try to remove it from the project and reimport

jsvitek commented 1 year ago

Hi @tustanivsky, we were indeed updating from 1.5.0 to 2.0.0. After firstly removing the previous version in the project and reimporting it anew the mentioned issue got resolved. The other one will hopefully be resolved in the separate thread. Thanks a lot for your help