ttlock / ios_ttlock_demo_deprecated Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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?
-(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];
}
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
I am installing TTLock SDK using pod but it is not giving me latest version. I want to integrate 2.8.2 version sdk using cocoapods. please help.
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
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
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
we are trying to many time but we unable to login.plz let me know
func onGetOperateLog_LockOpenRecordStr(_ LockOpenRecordStr: String!) { }
LockOpenRecordStr alway return nil
Xcode 10, Swift 4.2
TTLock framework version 2.8.1
[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) {
}];
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);
}
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.