Code Monkey home page Code Monkey logo

ios_ttlock_demo_deprecated's People

Contributors

juannyios avatar ttlock avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ios_ttlock_demo_deprecated's Issues

Cannot Upload into apple store without full bitcode

Hi! I'm trying to archive my project using TTLock framework (I'm using cocoapod by the way)
And I get this error..
bitcode bundle could not be generated because 'MyProject/Pods/TTLock/TTLockFramework/TTLock.framework/TTLock' was built without full bitcode. All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build for architecture arm64
can you help me out?

Where to get lockKey,aesKeyStr from?

-(void)onBTConnectSuccess_peripheral:(CBPeripheral )peripheral lockName:(NSString)lockName{

// unlock
[TTObject unlockByUser_lockKey:lockKey aesKey:aesKeyStr startDate:startDate endDate:endDate version:version unlockFlag:unlockFlag uniqueid:uniqueid timezoneRawOffset:timezoneRawOffset];

}

Lock not working without physical key

Hi There,

The SDK works awesome with the physical key. I mean when i attach the key in the lock then the lock / unlock works file with the mobile app but if i remove the key from the lock then the lock / unlock not working with the mobile app

Thanks

Error when try to perform lock operation.

ttLockAPI.lockByAdministrator(
  device,
  SharedData.getUid(),
  key.getLockVersion().toGson(),
  key.getAdminPwd(),
  key.getLockKey(),
  key.getLockFlagPos(),
  key.getAesKeyStr()
);

D/BluetoothLeService: errorCallback(L:2786) - errorLOCK_DYNAMIC_PWD_ERROR

Time Calibration didnt work when use 12 hour format in global setting

If you setting your format your time setting to 12 hour format (via iphone setting)
The Time Calibration in SDK stop working..
when I got the current lock time its show -252000 (its appear that was my timerawoffset) , and all my temporary passcode cannot work..
when i access the record log/operate log.. all the operateDate shows -252000 (timerawoffset)

I think your sdk have an issues in date format system (you need to put locale (example "en_US_POSIX") so that the formater can read 12 hour input format from the iphone...

dyld: Symbol not found: _$SBOWV

dyld: Symbol not found: _$SBOWV
Referenced from: /private/var/containers/Bundle/Application/10B8A1AD-B7DF-42C0-834D-5A00A75F9151/TTLockDemo.app/Frameworks/DFUDependence.framework/DFUDependence
Expected in: /private/var/containers/Bundle/Application/10B8A1AD-B7DF-42C0-834D-5A00A75F9151/TTLockDemo.app/Frameworks/libswiftCore.dylib
in /private/var/containers/Bundle/Application/10B8A1AD-B7DF-42C0-834D-5A00A75F9151/TTLockDemo.app/Frameworks/DFUDependence.framework/DFUDependence

Unable to login

we are trying to many time but we unable to login.plz let me know

bug ver 2.8.1

func onGetOperateLog_LockOpenRecordStr(_ LockOpenRecordStr: String!) { }
LockOpenRecordStr alway return nil
Xcode 10, Swift 4.2
TTLock framework version 2.8.1

getOperationLogWithType:TTOperateLogTypeLatest, operateRecord return null

[TTLock getOperationLogWithType:TTOperateLogTypeLatest lockData:_lockModel.lockData success:^(NSString *operateRecord) {
    /**
     getOperationLogWithType:TTOperateLogTypeLatest

     operateRecord return null
     */
    
    /**
     getOperationLogWithType:TTOperateLogTypeAll

     operateRecord value is normal
     */
} failure:^(TTError errorCode, NSString *errorMsg) {

}];

onGetOperateLog_LockOpenRecordStr is not called

I try to get the unlock record from the device so that i can continue upload lock process .This are all step i have done..in TTLockHelper.m file

// unlocked successfully
-(void)onUnlockWithLockTime:(NSTimeInterval)lockTime{

BLEBlock unlockBlock = _bleBlockDict[KKBLE_UNLOCK];
if (unlockBlock) {
    async_main(^{
        [_bleBlockDict removeObjectForKey:KKBLE_UNLOCK];
    });
}

[SSToastHelper showToastWithStatus:@"Unlocked successfully"];
[TTObjectTTLockHelper connectPeripheralWithLockMac:_currentKey.lockMac];

}

//get call back from

-(void)onBTConnectSuccess_peripheral:(CBPeripheral )peripheral lockName:(NSString)lockName{

NSLog(@"onBTConnectSuccess_peripheral %@",lockName);
[[TTLockHelper shareInstance].bleBlockDict removeObjectForKey:KKBLE_SCAN];

 [_TTObject stopBTDeviceScan];

NSLog(@"stopBTDeviceScan");

_isSendCommandByCRCError = YES;

self.TTObject.uid = [SettingHelper getOpenID];
[self.TTObject getOperateLog_aesKey:_currentKey.aesKeyStr version:_currentKey.lockVersion unlockFlag:_currentKey.lockFlagPos timezoneRawOffset:_currentKey.timezoneRawOffset];
NSLog(@"self.TTObject.delegaye",self.TTObject.delegate);
BLEConnectBlock connectBlock = _bleBlockDict[KKBLE_CONNECT];
if (connectBlock)
{
    NSLog(@"connectBlock YES");

    async_main(^{
        [self cancelConnectTimeOut];
        connectBlock(peripheral,KKBLE_CONNECT_SUCCESS);
        [_bleBlockDict removeObjectForKey:KKBLE_CONNECT];
    });
}else{
    NSLog(@"connectBlock NO");

    [TTLockHelper unlock:_currentKey unlockBlock:^(id info, BOOL succeed) {
        
    }];
}

NSLog(@"-----------CONNECT SUCCESS Bluetooth name %@ --------------",peripheral.name);

}

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.