-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate symbols for architecture #33
Comments
Same issue here. Did you figure it out? |
Might have solved this issue by pasting this at bottom of podfile:
|
Please check the fix from https://github.com/adrianso/react-native-nearby-api. Also works with latest version of react native too |
I tried that but got an error “Multiple commands create (some path)/Assets.car.” When I tried the legacy build system I got some error about multiple arm symbols conflicting. |
@zaptrem I'm getting the same error, did you manage to fix it? |
I fixed it (at least in part) by deleting the [CP] Copy Pods Resources ->
Assets.car build phase (not the whole phase, just Assets.car). I can’t
remember if this caused any problems that I mitigated some other way but I
don’t think it did. I wrote a script in my cocoa pods install to do it
automatically but it never worked:
```
post_install do |installer|
puts “Deleting [CP] Copy Pods Resources”
project_path = ‘ReLearn.xcodeproj’
project = Xcodeproj::Project.open(project_path)
project.targets.each do |target|
build_phase = target.build_phases.find { |bp| bp.display_name ==
‘[CP] Copy Pods Resources’ }
assets_path =
‘${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Assets.car’
if build_phase.present? &&
build_phase.output_paths.include?(assets_path) == true
puts(“DELETING”)
build_phase.output_paths.delete(assets_path)
#build_phase.remove_from_project
end
end
project.save(project_path)
```
Any idea why this script didn’t work? Also, let me know if that fixed it
for you.
…On Mon, May 25, 2020 at 3:47 PM Marc Rousavy ***@***.***> wrote:
@zaptrem <https://github.com/zaptrem> I'm getting the same error, did you
manage to fix it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#33 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMJTRSGBC24NC7A6XH7BBLRTLDOHANCNFSM4JYJOI2Q>
.
|
@zaptrem Awesome it worked! Seems really weird to me to manually remove Assets, hopefully this doesn't have any side effects. |
I've created a new library for the Nearby API here: https://github.com/mrousavy/react-native-google-nearby-messages because apparently this one is dead. It uses the latest version, supports autolinking and was made with Swift. |
I have ran
./renameLogger.sh
to resolve this issue but did not get to work as React-Native version0.60+
do not contains thethird-party
folder. see details below;Currently running the example provided here. this works for IOS & Android on
0.56
of react-native.Thanks.
The text was updated successfully, but these errors were encountered: