React Native XCode Project Product Archive Fails with duplicate symbols for architecture arm64

后端 未结 3 854
时光说笑
时光说笑 2020-12-02 20:33

Strangely, I can\'t seem to get Archive to work in XCode but the build succeeds without the errors on duplicate symbols if I do not attempt to Archive but simply bu

3条回答
  •  再見小時候
    2020-12-02 21:12

    I solved this issue by the following: (ref.: https://github.com/react-community/react-native-maps/issues/718)

    1. Open Xcode > Pods > Targets Support Files > Pods-{TARGET-NAME} find "OTHER_LDFLAGS" and remove only -ObjC in these two files:

    Pods-{TARGET-NAME}.release.xcconfig e Pods-{TARGET-NAME}.debug.xcconfig

    1. Go to project main target > Build Settings > Other Linker Flags: Make sure no -ObjC is left in the value I deleted the build/Build folder in ios and run your project again.

    It works now.

    Side effects from the link above: the app may become larger as there may be duplicated symbols in it.

    Hope it can help you.

提交回复
热议问题