GithubHelp home page GithubHelp logo

Built app with Xcode 15.2 crashes after AppSyncClient subscribe on iOS 16.3.1 version or lower about aws-mobile-appsync-sdk-ios HOT 4 CLOSED

CJblaze2022 avatar CJblaze2022 commented on August 17, 2024
Built app with Xcode 15.2 crashes after AppSyncClient subscribe on iOS 16.3.1 version or lower

from aws-mobile-appsync-sdk-ios.

Comments (4)

ruisebas avatar ruisebas commented on August 17, 2024 1

Hi @CJblaze2022, thanks for opening this issue.

From what I found online, this crash happens when attempting to use NWPathMonitor on builds created using Xcode 15 and targeting iOS versions lower than 12, and it only seems to affect CocoaPods.

As a quick fix, you can update both AppSyncRealTimeClient and AWSAppSync targets in your Pods project to use iOS 12.0 as the Minimum Deployment version:
ios12

Note that this will be overwritten every time you do a pod install or pod update, so if you wish to avoid that you can instead add a post-install script to your Podfile:

  post_install do |installer|   
    installer.pods_project.targets.each do |target|
      if target.name  == "AWSAppSync" || target.name  == "AppSyncRealTimeClient"
        target.build_configurations.each do |config|
          config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
        end
      end
    end
  end

We're already working on bumping the minimum deployments for these pods to iOS 12:

Once these are merged and released, you won't need to manually update anything.
We'll post an update here once that's done.

from aws-mobile-appsync-sdk-ios.

CJblaze2022 avatar CJblaze2022 commented on August 17, 2024 1

hi @ruisebas so sorry for the late response, we were testing you solution (it is not easy to find iOS 15 and 16 devices 😅), we changed our minimum deployment from 11.4 to 12.0 and it solved the issue. Many thanks for your support! 🙌🏼

from aws-mobile-appsync-sdk-ios.

ruisebas avatar ruisebas commented on August 17, 2024

AppSync SDK 3.7.0 and AppSyncRealTimeClient 3.2.0 have been released bumping the minimum deployment target to iOS 12. Please upgrade your dependencies to the latest versions.
Thanks!

from aws-mobile-appsync-sdk-ios.

github-actions avatar github-actions commented on August 17, 2024

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

from aws-mobile-appsync-sdk-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.