fuziki / UnityCoreBluetooth

Unity Bluetooth Plugin for iOS & macOS Editor
MIT License
52 stars 13 forks source link

How are you creating the Unix Executable file called UnityCoreBluetooth? #37

Open nonlin opened 1 year ago

nonlin commented 1 year ago

New to Swift development and I'm trying to make sense of the workspace vs projectfile and how they are tied together.

I've managed to make some additions and I can build the workspace and get some of the files I see need to go to Unity and I tried building the plugin but it complained about a missing package? I removed an embed and it too eventually compiled but I still don't see all the files you have put into Unity's Plugin folder.

Are all of those built? Raw? Manually Created given the circumstances? Perhaps the UnityCoreBluetooth-Swift.h file isn't generated but manually created? If so then any new methods I create that need to be exposed to Unity need to be added there?

Any context would be nice and educational. Or any documentation you used to make sense of this process would be appreciated.

Regards, George

nonlin commented 1 year ago

For example, opening the Plugins XCode Project which seems to be focused for just building for Mac, the .bundle and .bundle.dSYM are smaller file sizes then what you build and they don't work, so I'm not sure what I'm doing wrong.

I am including this git repo as an added project, otherwise the .bundle is 4KB in size but with its like 288-300KB in size, short of the 333KB in size in the example. The .dSYM is also 1.88MB instead of 3MB