ttlock / iOS_SDK_Demo

TTLock is a global provider of solutions for smart locks. We provide PCBA and softwares for lock manufactures and end users. We provide open API/SDK for developers. With these APIs/SDKs, you can develop your own applications to manage smart locks. The SDK here is for mobile app to communicate with locks via bluetooth.
MIT License
12 stars 12 forks source link

xcode 15 ld: 32 duplicate symbols #17

Closed lkuraer closed 8 months ago

lkuraer commented 11 months ago

can't launch project with ttlock on xcode 15. pls. fix

duplicate symbol '_OBJCCLASS$_HFSmartLinkDeviceInfo' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]15 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]11 duplicate symbol '_OBJCIVAR$_HFSmartLink.withV3x' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]12 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]8 duplicate symbol '_OBJCIVAR$_Udpproxy.recvmsg' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]14 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]10 duplicate symbol '_OBJCIVAR$_HFSmartLink.cont' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]12 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]8 duplicate symbol '_OBJCMETACLASS$_Udpproxy' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]14 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]10 duplicate symbol '_OBJCIVAR$_HFSmartLink._isConfigOneDevice' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]12 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]8 duplicate symbol '_OBJCIVAR$_HFSmartLinkDeviceInfo._ip' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]15 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]11 duplicate symbol '_OBJCMETACLASS$_HFSmartLinkDeviceInfo' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]15 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]11 duplicate symbol '_OBJCIVAR$_Udpproxy.localAdd' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]14 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]10 duplicate symbol '_OBJCIVAR$_HFSmartLink.udp' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]12 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]8 duplicate symbol '_OBJCIVAR$_HFSmartLink.pswd' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]12 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]8 duplicate symbol '_OBJCIVAR$_HFSmartLink.stopBlock' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]12 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]8 duplicate symbol '_OBJCIVAR$_Udpproxy.remoteAdd' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]14 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]10 duplicate symbol '_OBJCIVAR$_HFSmartLink.endBlock' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]12 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]8 duplicate symbol '_OBJCIVAR$_Udpproxy.sockfd' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]14 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]10 duplicate symbol '_OBJCIVAR$_Udpproxy.num' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]14 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]10 duplicate symbol '_OBJCIVAR$_HFSmartLink.deviceDic' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]12 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]8 duplicate symbol '_OBJCIVAR$_HFSmartLink.processBlock' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]12 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]8 duplicate symbol '_OBJCIVAR$_HFSmartLink._waitTimers' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]12 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]8 duplicate symbol '_OBJCIVAR$_HFSmartLink.isconnnecting' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]12 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]8 duplicate symbol '_OBJCIVAR$_Udpproxy.sockMCast' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]14 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]10 duplicate symbol '_OBJCIVAR$_Udpproxy.sendmsg' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]14 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]10 duplicate symbol '_OBJCIVAR$_HFSmartLinkDeviceInfo._mac' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]15 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]11 duplicate symbol '_OBJCCLASS$_HFSmartLink' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]12 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]8 duplicate symbol '_OBJCIVAR$_HFSmartLink.failBlock' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]12 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]8 duplicate symbol '_OBJCIVAR$_HFSmartLink.cont_len' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]12 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]8 duplicate symbol '_OBJCIVAR$_HFSmartLink.successBlock' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]12 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]8 duplicate symbol '_OBJCMETACLASS$_HFSmartLink' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]12 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]8 duplicate symbol '_OBJCIVAR$_Udpproxy.findAdd' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]14 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]10 duplicate symbol '_OBJCIVAR$_HFSmartLink.userStoping' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]12 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]8 duplicate symbol '_OBJCCLASS$_Udpproxy' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]14 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]10 duplicate symbol '_OBJCIVAR$_HFSmartLink.sendTime' in: -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]12 -/Pods/TTLockGateway/TTLockFrameworks/TTLockGateway.framework/TTLockGateway[arm64]8 ld: 32 duplicate symbols clang: error: linker command failed with exit code 1 (use -v to see invocation)

LiborZa commented 11 months ago

For me helped: Add "-ld64" under Build Setting -> Other Linker Flags but it seems to be workaround and must be fixed.

More info

JuannyiOS commented 11 months ago

Thank you for your feedback. It will be updated today.