skip to Main Content

Why Xcode & Simulator give me different dates?

I have this simple code (Xcode iOS app) import SwiftUI struct ContentView: View { var body: some View { VStack { Button(action: { let dateToday = Date() let dateOneYearAgo = Calendar.current.date(byAdding: .year, value: -1, to: dateToday) ?? dateToday print("dateToday: (dateToday)…

VIEW QUESTION

Duplicate symbols for architecture arm64 – React-Native – React native

I have a React-Native Project that works well, however, when I install vision-camera-code-scanner, the project stops building in XCode and I get the following error: duplicate symbol '_OBJC_CLASS_$_GDTCCTCompressionHelper' in: /Users/XXX/Library/Developer/Xcode/DerivedData/XXX-xxx/Build/Products/Debug-iphoneos/GoogleDataTransport.o /Users/XXX/Library/Developer/Xcode/DerivedData/XXX-xxx/Build/Products/Debug-iphoneos/GoogleDataTransport/libGoogleDataTransport.a(GDTCCTCompressionHelper.o) duplicate symbol '_OBJC_METACLASS_$_GDTCCTCompressionHelper' in: /Users/XXX/Library/Developer/Xcode/DerivedData/XXX-xxx/Build/Products/Debug-iphoneos/GoogleDataTransport.o /Users/XXX/Library/Developer/Xcode/DerivedData/XXX-xxx/Build/Products/Debug-iphoneos/GoogleDataTransport/libGoogleDataTransport.a(GDTCCTCompressionHelper.o) [...] ld: 105…

VIEW QUESTION

Xcode – Bitcode error only when running on device

When running my app on simulator, it works perfectly, but when I try to run it on my device, I get the following error: '/Users/xxxxxxxxx/Library/Developer/Xcode/DerivedData/Appname-dvsqmvczxjaaajfxojqecerjuauk/Build/Products/Debug-iphoneos/Amplitude-iOS/Amplitude_iOS.framework/Amplitude_iOS' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain…

VIEW QUESTION
Back To Top
Search