Coder Social home page Coder Social logo

blemingleios's People

Contributors

domenukk avatar gitgarage avatar omikes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

blemingleios's Issues

It found an error in BLEMingle.swift in swift 3

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]

Does not compile for Swift3

In particular, the 'split' function has to be used differently in Swift3. This is used in line ~135 of BLEMingle.swift.

Update to new XCode/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

Analyzing dependencies failed

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 (fromPodspecs/libsodium.podspec.json) is not used in any concrete target.

Compiling throws 17 errors in BLEMingle.swift

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

Crash when discovering Devices

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.