tuya / tuya-home-ios-sdk-sample-objc

This sample demonstrates how to use Tuya Smart Home iOS SDK features in Objective-C.
https://developer.tuya.com/docs/app-development/ios-app-sdk/feature-overview?id=Ka5cgmlybhjk8
15 stars 10 forks source link

Undefined symbols for architecture arm64 #14

Closed Md-Mahfuzur-Rahman closed 11 months ago

Md-Mahfuzur-Rahman commented 11 months ago

Hi all, I am facing an issue. here it is ,

Undefined symbol: _read_keys_from_content Undefined symbol: _read_keys_from_file Undefined symbol: _thingctypt_CString Undefined symbol: _thingctypt_OCString

My environment: XCode - 14.2 Mac - intel , Monterey

===== Inside POD ============ source 'https://github.com/CocoaPods/Specs' source 'https://github.com/tuya/TuyaPublicSpecs.git' source 'https://github.com/tuya/tuya-pod-specs.git'

target 'TuyaAppSDKSample-iOS-ObjC' do

pod 'ThingSmartHomeKit', '~> 5.0.0' pod 'ThingSmartCryption', :path => './' end

post_install do |installer| cd TuyaAppSDKSample-iOS-ObjC; [[ -f AppKey.h ]] || cp AppKey.h.default AppKey.h; end

=============

Could you please help ?

Screenshot 2023-10-06 at 10 45 20 AM

taojingGino commented 11 months ago

https://developer.tuya.com/cn/docs/app-development/integrate-sdk?id=Ka5d52ewngdoi#title-3-%E4%BD%BF%E7%94%A8%20CocoaPods%20%E9%9B%86%E6%88%90

please check this docment,this error looks like you miss ThingSmartCryption's "build" files @Md-Mahfuzur-Rahman

Md-Mahfuzur-Rahman commented 11 months ago

Thank you @taojingGino, for your prompt reply. It was a great help. I have solved the issue.