xcode12
Xcode 12 beta and iOS 14: Weird console logs “objc[5551]: Class … is implemented in both”
I’m having the same logs (Using Xcode Beta 3). I think it might be something with current Xcode 12 beta version. Edit: Those logs are not appearing anymore to me. Xcode 12.0.1 (12A7300)
Using an empty LLDB target which can cause slow memory reads from remote devices [duplicate]
My Xcode 12.2 settings: I use OS BigSur release I found that the setting Architectures>Build Active Architecture Only>Release must be set to Yes
Xcode 12 IPHONEOS_DEPLOYMENT_TARGET warning for SPM dependencies
You can try: @available(iOS, deprecated: 9.0) or this: #pragma clang diagnostic push #pragma clang diagnostic ignored “-Wdeprecated-declarations”
Xcode 12 deployment target warnings when using CocoaPods
A short working solution is here! Just copy and paste the code snippet at the end of your Podfile and run the pod install command. post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| if config.build_settings[‘IPHONEOS_DEPLOYMENT_TARGET’].to_f < 12.0 config.build_settings[‘IPHONEOS_DEPLOYMENT_TARGET’] = ‘12.0’ end end end end In this case, 12.0 is the minimum supporting iOS version … Read more
Get the current scroll position of a SwiftUI ScrollView
It was possible to read it and before. Here is a solution based on view preferences. struct DemoScrollViewOffsetView: View { @State private var offset = CGFloat.zero var body: some View { ScrollView { VStack { ForEach(0..<100) { i in Text(“Item \(i)”).padding() } }.background(GeometryReader { Color.clear.preference(key: ViewOffsetKey.self, value: -$0.frame(in: .named(“scroll”)).origin.y) }) .onPreferenceChange(ViewOffsetKey.self) { print(“offset >> \($0)”) … Read more
Xcode12 CoreNFC simulator library not loaded
Apple obviously forgot to add libnfshared.dylib for whatever reason in the final version of Xcode 12 for iOS 14 simulators. A working workaround until Apple fixes this is to copy the missing lib from Xcode 12 beta 6 over (download the beta from Apple’s developer download section). The missing lib can be found here and … Read more
In Xcode 12, In Info.plist file column expanding or resizing to zoom not working
I had similar issue where the Value column was way too narrow. I tried making the window as small as possible and then resizing, but that didn’t help. However, what seemed to resolve the issue for me was to click Add Editor on Right button (near the upper right corner with the “+”) when Info.plist … Read more
SwiftUI warning: `Attempting -[UIContextMenuInteraction dismissMenu], when not in an active state`
SwiftUI warning: `Attempting -[UIContextMenuInteraction dismissMenu], when not in an active state`
ARCHS[@]: unbound variable in Xcode 12
Note :- React native developers After wasting couple of hours only solution that worked for me was Open VSCode and go to directory ios/App/App.xcodeproj/project.pbxproj that file and perform a search EXCLUDED_ARCHS EXCLUDED_ARCHS = arm64; and delete everyline containing EXCLUDED_ARCHS