MobileChromeApps / cordova-plugin-chrome-apps-bluetooth

BSD 3-Clause "New" or "Revised" License
10 stars 11 forks source link

Problem building in xCode 7 beta 5 #6

Open henryblackman opened 8 years ago

henryblackman commented 8 years ago

Hello. I'm seeing the following error when building in xCode 7 (beta 5) with a project that includes the latest version of this plugin:

..../Plugins/cordova-plugin-chrome-apps-bluetooth/ChromeBluetooth.m:474:22: Property 'isConnected' not found on object of type 'CBPeripheral *'

My project won't now build, although it does merrily in xCode 6.4. I realise this version of xCode is a beta - but I thought I should put it out there.

CookieCookson commented 8 years ago

As a quick fix I commented out this statement and return on cleanup to get it to compile OK.

//if (!_peripheral.isConnected) { return; //}

I have no idea if this will affect the performance in any other way as it is a cleanup function but everything seems to be working ok! Let me know if you find a proper solution.