Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No private frameworks with iOS SDK 9.3 #11

Open
michaeldorner opened this issue Apr 27, 2016 · 14 comments
Open

No private frameworks with iOS SDK 9.3 #11

michaeldorner opened this issue Apr 27, 2016 · 14 comments
Labels

Comments

@michaeldorner
Copy link
Owner

michaeldorner commented Apr 27, 2016

There is a big problem: With Xcode 7.3 Apple removed all private frameworks from the iOS SDKs, so at the moment BeeTee is not working!

We could embed a previous version of the BluetoothManager.framework, but this is no long-term solution, because then we are not able to use the a current version of it.

Any other ideas?

Unfortunately, due to my current workload I am not able to work on this issue at the moment. Someone else?

@SiBorya
Copy link

SiBorya commented Apr 29, 2016

May I ask anywhere to get the previous version of BluetoothManager.Framework?

@wtfaremyinitials
Copy link

Could this be fixed by pulling BluetoothManager.framework off of a device?

@n8r0n
Copy link

n8r0n commented May 3, 2016

If you'd be willing to post this as a question on stack overflow, I can give you a detailed answer. Be sure to use the tag 'iphone-privateapi' (as well as 'iOS', of course), and I'll see it. I got it working.

@michaeldorner
Copy link
Owner Author

michaeldorner commented May 3, 2016

Here you go. :-)

@leondobnik
Copy link

Hi guys!

First of all: thanks to all taking time to write down all these great instructions - but just one question. Is this thing still working in iOS10, or Apple blocked execution of such networks completely? On ios 9.3 on iPhone 5 this thing is working, but on iOS 10 and iPhone 6 for instance, it does not work. I have tracked down where the problem might be:

    // ADDED CODE BELOW
    libHandle = dlopen("/System/Library/PrivateFrameworks/BluetoothManager.framework/BluetoothManager", RTLD_NOW);
    BluetoothManager* bm = [MDBluetoothManager bluetoothManagerSharedInstance];

When bluetoothManagerSharedInstance is called in the iOS9 a message "Connecting to BT server appears". On iOS 10 this never happens. The instance of BluetoothManager is successfully created.

@michaeldorner
Copy link
Owner Author

Thank you for your investigations. But I believe it won't work for iOS 10 and newer.

@n8r0n
Copy link

n8r0n commented Nov 23, 2016

It's still working for me on iOS 10.1.1. iPhone 7.

An iOS bug that spews biometric data makes it hard to read the console log. I wouldn't assume the lack of the

Connecting to BT server appears

message is meaningful. Log output varies with changes to iOS. I was able to use the project to toggle bluetooth and discover peripherals.

@michaeldorner
Copy link
Owner Author

That's great news! Still the same procedure or did you do something different?

@n8r0n
Copy link

n8r0n commented Nov 23, 2016

I didn't change anything. Other than updating to the latest iOS SDK and rebuild.

@michaeldorner
Copy link
Owner Author

In the new version released today I switched to dynamic loading. So

  • no header copying
  • more stability over all iOS versions (including iOS 10 (tested))
  • cookies for everyone.

@cybertk
Copy link

cybertk commented Dec 27, 2016

The latest code does not work on iOS 10.1.1

@michaeldorner
Copy link
Owner Author

  1. Please be more precise @cybertk: What is not working?
  2. I developed on iOS 10.1.1, so it does work.

@cybertk
Copy link

cybertk commented Jan 3, 2017

With the code snippet in README,

beeTee.enableBluetooth() fails to lighten the bluetooth logo in Control Center.

But while I toggle the bluetooth manually, I can get the notification like PowerChanged and ConnectabilityChanged

@michaeldorner
Copy link
Owner Author

michaeldorner commented Jan 3, 2017

Thanks for reporting. I think I already know why. I will fix it these days. Can you please open a new issue for that problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants