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

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