gitgarage / blemingleios Goto Github PK
View Code? Open in Web Editor NEWBluetooth LE Mingle, iOS Side
Bluetooth LE Mingle, iOS Side
When send message to iOS device to iOS device crash on receiver device app. I was checked it on iPhone 5 devices and it has iOS 9.3.5 version. It says:
fatal error: Input is wrong: file /BLEMingleiOS-master/BLEMingleiOS/BLEMingle.swift, line 122
BLEMingleiOS-master/BLEMingleiOS/BLEMingle.swift:259:106:
Expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions
the line is
let finalString = rev[0..<7] + "-" + rev[8..<11] + "-" + rev[12..<15] + "-" + rev[16..<19] + "-" + rev[20..<31]
I guess you're using swift 1.0 ?
In particular, the 'split' function has to be used differently in Swift3. This is used in line ~135 of BLEMingle.swift.
Mike I can not seem to find an email address for you so apologies for having to put a bug report in order to get in touch with you.
I am just wondering if it would be too much to ask if you could update the iOS code for this? I've been trying to work with it in XCode 13.3 and Swift 4+ and I have a few errors due to Swift being less than version 4 among other obsolete code here and there.
Currently when starting the app I get this error:
initCentral
self.peripheralManager powered on.
Scanning started
2022-06-12 20:40:23.324326-0400 BLEMingleiOS[9295:2057090] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSTaggedPointerString substringWithRange:]: Range {4, 4} out of bounds; string length 3'
That looks to be in the AppDelegate.swift file line 14.
Thanks! @gitgarage @omikes
Re-creating CocoaPods due to major version update.
Analyzing dependencies
[!] The dependency YapDatabase (~> 2.5)
is not used in any concrete target.
The dependency PureLayout (~> 2.0)
is not used in any concrete target.
The dependency Mantle (~> 1.4)
is not used in any concrete target.
The dependency InAppSettingsKit (~> 2.2)
is not used in any concrete target.
The dependency JSQMessagesViewController (~> 6.0)
is not used in any concrete target.
The dependency IGIdenticon (~> 0.2.0)
is not used in any concrete target.
The dependency libsodium (from
Podspecs/libsodium.podspec.json)
is not used in any concrete target.
Hi,
The errors are as follows:
./BLEMingle.swift
./BLEMingle.swift:26:24: Consecutive statements on a line must be separated by ';'
./BLEMingle.swift:27:11: Expected 'while' in 'do-while' loop
./BLEMingle.swift:27:27: Consecutive statements on a line must be separated by ';'
./BLEMingle.swift:27:28: Expected expression
./BLEMingle.swift:27:39: Braced block of statements is an unused closure
./BLEMingle.swift:6:32: 'String' does not have a member named 'characters'
./BLEMingle.swift:27:21: Type annotation missing in pattern
./BLEMingle.swift:27:39: Type of expression is ambiguous without more context
./BLEMingle.swift:31:71: '_??' is not convertible to 'ArrayLiteralConvertible'
./BLEMingle.swift:31:71: '<<error type>>?' is not convertible to 'ArrayLiteralConvertible'
./BLEMingle.swift:124:77: Cannot invoke 'map' with an argument list of type '((_) -> _)'
./BLEMingle.swift:175:116: 'AnyObject' is not convertible to 'CBService'; did you mean to use 'as!' to force downcast?
./BLEMingle.swift:184:33: 'AnyObject' is not convertible to 'CBCharacteristic'; did you mean to use 'as!' to force downcast?
./BLEMingle.swift:234:32: 'String' does not have a member named 'characters'
./BLEMingle.swift:331:50: Cannot invoke 'updateValue' with an argument list of type '(NSData, forCharacteristic: CBMutableCharacteristic!, onSubscribedCentrals: nil)'
./BLEMingle.swift:375:49: Cannot invoke 'updateValue' with an argument list of type '(NSData, forCharacteristic: CBMutableCharacteristic!, onSubscribedCentrals: nil)'
./BLEMingle.swift:121:10: Objective-C method 'centralManager:didDiscoverPeripheral:advertisementData:RSSI:' provided by method 'centralManager(_:didDiscoverPeripheral:advertisementData:RSSI:)' conflicts with optional requirement method 'centralManager(_:didDiscoverPeripheral:advertisementData:RSSI:)' in protocol 'CBCentralManagerDelegate'
Latest xCode and Swift version 1.2
Same issue for the in the zip/jar file
Under didDiscoverPeripheral:
let datas = hexString.dataFromHexadecimalString()
app crashes because datas var is always nil. The case is connection between 2 iOS Devices (iPhone 5 and 6) using this app, but it seems I am not able to send data. Can you give me a hint or something regarding to this library, does this support connection between 2 iOS Devices?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.