Open AnasRezk opened 1 year ago
I faced the same issue. For android devices works fine but when I tried to build for ios hit this error Showing Recent Errors Only 137 duplicate symbols for architecture arm64
. If I uninstall the package react-native-thermal-receipt-printer
, the build is complete successfully.
My Environment OS - macOS Ventura 13.0 Chip - Apple M1 Xcode - version 14.2 react-native - 0.64.4
I am facing same issue 😕
The documentation solve the problem:
https://github.com/HeligPfleigh/react-native-thermal-receipt-printer#troubleshoot
Hey, I resolved this issue through following steps:
remove useflipper() from the ios/Podfile
Add the following code between __apply_Xcode_12_5_M1_post_install_workaround(installer)
and end
in ios/Podfile
Code:
installer.pods_project.targets.each do |target| if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle" target.build_configurations.each do |config| config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO' end end end
Move to ios folder cd ios
then remove Podlock file rm Podfile.lock
install pods pod install
Remove build folder from the ios folder in your project.
Open the ios
folder of your project in Xcode.
Click on the blue folder icon
then click on your project folder from the list
There will be a right sidebar containing following
Select Xcode version greater than 12 in Project Format
dropdown.
Build your project from Xcode.
Thank me later.
I am still having this issue. I tried to follow your guide @danitrical but it did not fix it.
Anyone can solve?
Any news about this issue?
Current Behavior
Expected Behavior
How to reproduce
npx react-native init DinexMobile --template react-native-template-typescript
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Reference from apple docs
Your Environment