react-native-zendesk-chat icon indicating copy to clipboard operation
react-native-zendesk-chat copied to clipboard

xcode error: use of undeclared identifier 'ZDKFormFieldStatus...

Open firdaussoberi opened this issue 4 years ago • 13 comments

I am having exact same error as #63 in iOS with RN0.60.4

Am using 0.4.1-beta.4 of the library. For some reason, the frameworks won't link up correctly. I saw the library podspec depends on

...
  s.dependency 'React-Core'
  s.dependency 'ZendeskChatSDK'
end

In Xcode 'Development Pods' I see RNZendeskChat/RNZendeskChatModule.m references

#import <ChatSDK/ChatSDK.h>
#import <ChatProvidersSDK/ChatProvidersSDK.h>

The frameworks shows up in Pods/ZendeskChatProvidersSDK/Frameworks/ChatProvidersSDK.framework and Pods/ZendeskChatSDK/Frameworks/ChatSDK.framework but somehow it won't recognize ChatSDK and ChatProvidersSDK

Anybody experienced this or has any suggestion for a workaround? Thanks!

firdaussoberi avatar Nov 06 '20 12:11 firdaussoberi

What version of Cocoapods & Xcode are you using?

fbartho avatar Nov 06 '20 16:11 fbartho

Cocoapods was very flaky in react-native before 0.62. We didn't use cocoapods until we had upgraded to 0.62.0.

fbartho avatar Nov 06 '20 16:11 fbartho

I'm using pod v1.9.3, xcode version 12.1 (12A7403)

firdaussoberi avatar Nov 06 '20 16:11 firdaussoberi

It's failing for me as well. If I try to "Run" the App, using a Debug Configuration it works. Once I try to Build using Release config, it fails.

yankovalera avatar Nov 06 '20 16:11 yankovalera

It's failing for me as well. If I try to "Run" the App, using a Debug Configuration it works. Once I try to Build using Release config, it fails.

I see. Thanks for the heads up! Indeed, I'm using Release. Trying debug and will see. How's the build for archive in release, is it working?

p/s: debug config works with exisiting project's podfile. still figuring out with release.

firdaussoberi avatar Nov 06 '20 16:11 firdaussoberi

Archiving worked fine, it's weird. In fact If I select 'Any iOS Device' it works ok for both building / archiving.

yankovalera avatar Nov 06 '20 17:11 yankovalera

Any news about this issue? I am having the same problem on release

harrydema avatar Nov 18 '20 18:11 harrydema

I have the same bug. I fixed it to update cocoapods version to 1.10.0 with: sudo gem install cocoapods and do pod install --repo-update in ios file again.

zhudax avatar Jan 05 '21 12:01 zhudax

Any news about this issue? I am having the same problem cocospod: 1.9.3 RN: 0.63.2 xcode: 12.1 image

sanshao avatar Jan 05 '21 15:01 sanshao

To @sanshao and everyone still exhibiting this issue:

It sounds like @zhudax noticed the key difference: please make sure you're using the latest version of Cocoapods, and make sure to pod install --repo-update.

Thanks!

fbartho avatar Jan 05 '21 17:01 fbartho

To @sanshao and everyone still exhibiting this issue:

It sounds like @zhudax noticed the key difference: please make sure you're using the latest version of Cocoapods, and make sure to pod install --repo-update.

Thanks!

Nice! worked fine!

sanshao avatar Jan 06 '21 04:01 sanshao

To @sanshao and everyone still exhibiting this issue:

It sounds like @zhudax noticed the key difference: please make sure you're using the latest version of Cocoapods, and make sure to pod install --repo-update.

Thanks!

This error appear again when I switch my project scheme on Release :( Cocoapods: 1.10.1 RN: 0.63.4 Xcode: 12.3

zhudax avatar Jan 15 '21 10:01 zhudax

To @sanshao and everyone still exhibiting this issue: It sounds like @zhudax noticed the key difference: please make sure you're using the latest version of Cocoapods, and make sure to pod install --repo-update. Thanks!

This error appear again when I switch my project scheme on Release :( Cocoapods: 1.10.1 RN: 0.63.4 Xcode: 12.3

ok I found how to fix it. Basically you have to exclude arm64 for simulator architecture both from your project and the Pod project: https://stackoverflow.com/a/63955114

zhudax avatar Jan 17 '21 18:01 zhudax