TOSMBClient icon indicating copy to clipboard operation
TOSMBClient copied to clipboard

[cocoapods] dyld: lazy symbol binding failed: Symbol not found: _clock_gettime

Open kiryl09 opened this issue 7 years ago • 1 comments

Hardware / Software

Which version of the library were you using? 1.0.7 Which version of iOS are you running? 9.0 What model of iOS device were you testing on? iPhone 6 Simulator, iPad 4 If using CocoaPods, which version of CocoaPods are you on? 1.0.7 and problem exists with cocoapods only

Problem

On iOS 9 with 1.0.7 (from cocoapods) I always have a crash when I execute the method: [TONetBIOSNameService startDiscoveryWithTimeOut:(NSTimeInterval)timeout added:(TONetBIOSNameServiceDiscoveryEvent)addedHandler removed:(TONetBIOSNameServiceDiscoveryEvent)removedHandler]

Looks like static libraries libdsm.a or libtasn1.a submitted in Pod use undefined function. When I rollback Pod to version 1.0.5 it works fine on iOS 9 & iOS 10.

Please rebuild libdsm.a and libtasn1.a libraries for cocoapods with iOS 9 compatibility as it was in pod 1.0.5 or change min supported iOS version in Podspec.

Crash log:

dyld: lazy symbol binding failed: Symbol not found: _clock_gettime Referenced from: /Users/user1/Library/Developer/CoreSimulator/Devices/A82EC3BC-980F-4FB3-94F4-355C71894BBE/data/Containers/Bundle/Application/1BB92D51-FC73-4582-BB5C-3DCA1C0DE50C/Salsa.app/Salsa Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.0.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libSystem.dylib

dyld: Symbol not found: _clock_gettime Referenced from: /Users/user1/Library/Developer/CoreSimulator/Devices/A82EC3BC-980F-4FB3-94F4-355C71894BBE/data/Containers/Bundle/Application/1BB92D51-FC73-4582-BB5C-3DCA1C0DE50C/Salsa.app/Salsa Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 9.0.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libSystem.dylib

kiryl09 avatar Jun 12 '17 16:06 kiryl09

HI @kirillkudin! I built a new version of libdsm a few weeks back. Can you please check again and see if you're still having the issue? Thanks!

TimOliver avatar Nov 01 '17 07:11 TimOliver