Closed PaitoAnderson closed 4 years ago
Did you ever figure this out? I'm running into the same error trying to add a Watch App to my RN 62.2 app.
@WJimmyCook I did not, no rush for me to update atm.
I fixed similar error in my iOS app by removing "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
line from LIBRARY_SEARCH_PATHS
in project.pbxproj file.
I fixed similar error in my iOS app by removing
"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
line fromLIBRARY_SEARCH_PATHS
in project.pbxproj file.
Thanks @iyegoroff - this did the trick for me.
I had to delete this from both the watchapp & watchapp extension targets.
Thank you @iyegoroff you're a legend!
I fixed similar error in my iOS app by removing
"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
line fromLIBRARY_SEARCH_PATHS
in project.pbxproj file.
You're my legend
Absolute beast... leaving this error below so Google can help the next guy not waste a day and a half of his life.
swift_getTypeByMangledNameInContextInMetadataState
I ran in to a similar issue when trying to create a home screen widget in Xcode 12 for iOS 14. The fix mentioned above didn't work for me, but it set me on the right path. I'm posting my fix here in case others may find it useful!
For me, there were two steps to fixing this issue:
LIBRARY_SEARCH_PATHS
in the Project configurationFile > New > File > Swift
), and call it whatever you wantThank you!!!
I fixed similar error in my iOS app by removing
"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
line fromLIBRARY_SEARCH_PATHS
in project.pbxproj file.
I built new appclips got the same error and that did the trick for me
Thank you so much 😭
I fixed similar error in my iOS app by removing "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", line from LIBRARY_SEARCH_PATHS in project.pbxproj file.
I built new appclips got the same error and that did the trick for me
I built a new widget extension and got the same error, all new Xcode template conflict with react-native
@iyegoroff You saved me, thanks a lot
I fixed similar error in my iOS app by removing
"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
line fromLIBRARY_SEARCH_PATHS
in project.pbxproj file.Thanks @iyegoroff - this did the trick for me.
I had to delete this from both the watchapp & watchapp extension targets.
that is on "Debug" or "Release" because on Library Search Paths has two drop down ? I am not seem those line available , could you give the more detail about it ? I face the issue on RN 0.64
I fixed similar error in my iOS app by removing
"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
line fromLIBRARY_SEARCH_PATHS
in project.pbxproj file.Thanks @iyegoroff - this did the trick for me. I had to delete this from both the watchapp & watchapp extension targets.
that is on "Debug" or "Release" because on Library Search Paths has two drop down ? I am not seem those line available , could you give the more detail about it ? I face the issue on RN 0.64
Same here. Can someone provide more information?
I fixed similar error in my iOS app by removing
"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
line fromLIBRARY_SEARCH_PATHS
in project.pbxproj file.Thanks @iyegoroff - this did the trick for me. I had to delete this from both the watchapp & watchapp extension targets.
that is on "Debug" or "Release" because on Library Search Paths has two drop down ? I am not seem those line available , could you give the more detail about it ? I face the issue on RN 0.64
Same here. Can someone provide more information?
Same here
I fixed similar error in my iOS app by removing
"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"",
line fromLIBRARY_SEARCH_PATHS
in project.pbxproj file.
This seems to only fix the issue while in Debug scheme. Once I try to build the app in the Release scheme, I still get the same error. This happened to me when I added the @stripe/stripe-react-native package. Anyone else got that issue in Release, please advise. Thanks in advance.
@iyegoroff Jesus Christ thank you so much
Environment
Upgrading version
0.61.5 -> 0.62.2
Description
Error building watchOS app after upgrading from React Native 61.5:
Reproducible demo
npx react-native init AwesomeProject
Add Watch App for iOS App Target
Accept Defaults
Error building AwesomeProject for iPhone 11 Simulator