Beaconstac / NearBee-iOS-SDK

Beaconstac NearBee SDK for iOS
https://www.beaconstac.com
MIT License
1 stars 1 forks source link

No EddyStoneFramework or Socket-IO framework #2

Closed JoeyBodnar closed 5 years ago

JoeyBodnar commented 5 years ago

For manual installation, it says:

Add the NearBee.framework, EddystoneScanner.framework, and Socket.IO-Client-Swift.framework 
to the embedded binaries section of your destination app target.

However, when downloading the zip file for NearBee, there is no EddyStoneScanner.framework and no Socket.IO-Client-Swift.framework, and the installation doesn't say how I can find these. When trying to build my project, I get "module EddystoneScanner not found".

I went to the EddyStoneScanner GitHub (https://github.com/Beaconstac/EddystoneScanner-iOS-SDK) and there is no EddyStoneScanner.framework file there either when I downloaded the zip file.

Where can I find EddyStoneScanner.framework and Socket.IO-Client-Swift.framework? Thank you.

sachinmobstac commented 5 years ago

@JoeyBodnar , Please download the dependencies from here.

JoeyBodnar commented 5 years ago

Hmm even after doing that I still got "Module EddystoneScanner not found":

Screen Shot 2019-03-28 at 11 52 47 AM

So, now I am trying with Cocoapods and that is not working either. It compiles, but crashes on launch with this error message:

libraryNotLoaded

Here is with my Linked Frameworks and Libraries looks like:

Screen Shot 2019-03-28 at 12 03 56 PM

I have tried removing the "EddyStoneScanner", also tried making it optional, making it required, and tried making libPods-SauceGo.a both optional and required. In Build Settings, I have tried setting "Always Embed Swift Standard Libraries" to YES, and also tried setting it to NO. I have tried setting "Always Search User Paths" to both YES and NO as well.

Also tried: Under Build Phases -> Copy Bundle Resources, I tried adding libPods-SauceGo.a.

However, no matter what I do, I always get the same error message where it says "library not loaded."

Xcode version: 10.1 Swift version: 4.2.1 My Podfile:

platform :ios, '10.0'
  target 'MyTargetIsHere' do
    pod 'NearBee'
end

cocoa pods version: 1.6.1 (I just installed cocoa pods yesterday)

Also, when I click to Add to Embedded Binaries (under General -> Embedded Binaries), none of these frameworks appear as an option, so I cannot add them there.

Any help is appreciated, thank you.

JoeyBodnar commented 5 years ago

Continuing to try by manual installation as well. Now I have it compiling upon manual installation, but it crashes with a very similar error on launch:

Screen Shot 2019-03-28 at 1 43 31 PM

Also tried setting "Always Embed Swift Standard Libraries" under Build Settings to YES, and it still crashes.

If it is of any help, this is what my project directory looks like:

Screen Shot 2019-03-28 at 1 47 22 PM

Thanks

sachinmobstac commented 5 years ago

@JoeyBodnar, Looking into it. Give me few minutes will update.

sachinmobstac commented 5 years ago

@JoeyBodnar, Missed few files in the frameworks have updated the link. Please re-download the dependencies and try again.

JoeyBodnar commented 5 years ago

thank you. I just re-downloaded the dependencies for manual installation, but I am still getting a crash with the same error message. When I opened the .framework contents though, the file and everything looked exactly the same. Maybe the link wasn't updated?

thanks for you help

sachinmobstac commented 5 years ago

@JoeyBodnar, Can I get access to your project. I started a new Swift Project, it works just fine. I am not sure what's the issue with your Project.

JoeyBodnar commented 5 years ago

For legal reasons I'm not sure if I can let you see the project, sorry. But I did just start a brand new Xcode project and I am having the same problem. Are you running on a simulator or the device? I am trying to run on the simulator. I searched part of the error message "no matching architecture in universal wrapper" and it looks like maybe NearBee cannot be built using the simulator? https://forums.developer.apple.com/thread/11237

It may be that trying to use the simulator is my problem. At the moment I can't run on a device because my Xcode is 10.1 and I already updated my phone's iOS to 12.2, and they are incompatible.

sachinmobstac commented 5 years ago

@JoeyBodnar, Since NearBee depends extensively on the Bluetooth to scan and show the data related to beacon we have disabled the Simulator architecture. This is because, the Simulator cannot use the MacBook's BLE and will never be able to see it working.

JoeyBodnar commented 5 years ago

ahhh ok I see. this is probably the problem. Ok I will get Xcode 10.2 and see if I can build with that. Thanks a lot!

JoeyBodnar commented 5 years ago

Ok so I have obtained an iPhone with iOS 12.1 and am building on Xcode 10.1. I am still have the same same problem with manual installation. I created a brand new Xcode project that has this problem, here: https://github.com/JoeyBodnar/TestNearBee. I am using manual installation

It compiles, unless you add "import NearBee". When adding the import statement then it does not compile and I receive the following errors:

Screen Shot 2019-03-29 at 2 50 28 PM

What I have tried:

sachinmobstac commented 5 years ago

@JoeyBodnar , Please download from here.

JoeyBodnar commented 5 years ago

Nice, thanks a lot for your help! it is now compiling and does not crash on launch. the issue can be closed now.