Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in Xcode 15 #81

Open
mithunX89 opened this issue Oct 27, 2023 · 7 comments
Open

Crash in Xcode 15 #81

mithunX89 opened this issue Oct 27, 2023 · 7 comments
Assignees
Labels

Comments

@mithunX89
Copy link

**Have read the known issues? **
[ ] Yes, I have read and am familiar with the list of known issues.

**Have tested on a physical device? **
[ ] Yes, I have tested on physical iOS device and the reported issue is still present.

**Does code retain the Connectivity object? **
[ ] Yes, my implementation has a strong reference to the Connectivity object so that it is not deallocated during use.

Describe the bug
Application is crashing on device when connectivity.checkConnectivity {} or connectivity.startNotifier() is called in AppDelegate. This is occurring when running/archiving from Xcode 15/15.1 beta versions. This is working without any issues on simulator and was working fine before when running/archiving from Xcode 14.2/14.3.1.

To Reproduce
Steps to reproduce the behavior:

  1. Call connectivity.checkConnectivity {} or connectivity.startNotifier() in didFinishLaunchingWithOptions (AppDelegate.m)
  2. Application crashes
  3. Application works fine when both calls are removed

Smartphone (please complete the following information):

  • Device: [iPhone 6 Plus] [iPad mini 5th Generation]
  • OS: [iOS 12.6] [iPad OS 16.6]
  • Version [6.0.0] [6.1.1]

Additional context
This seems to be a problem when build/archiving from Xcode 15/later versions and Xcode 14.3.1 works fine.

@sekny
Copy link

sekny commented Oct 30, 2023

I got the same issue on Xcode 15 with Minimum Deployment Target 12

@AusCryptor82
Copy link

Physical device crashes on Connectivity.startNotifier but works fine in simulators (XCode 15.0.1 and minimum deployment Target of 13)

@hugang1102
Copy link

NWPathMonitor EXC_BAD_ACCESS, hope fix it

@sekny
Copy link

sekny commented Nov 13, 2023

NWPathMonitor EXC_BAD_ACCESS, hope fix it

What's that for @hugang1102

@sekny
Copy link

sekny commented Nov 13, 2023

I found that the issue is related to XCode 15 itself not with library, so in my case, it fixed by change deployment target in Pod file to 12

post_install do |installer|
	installer.generated_projects.each do |project|
		project.targets.each do |target|
				target.build_configurations.each do |config|
					config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"  # If using Apple silicon
					if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 12.0
						config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
					end
				end
		end
	end
end

@hugang1102
Copy link

I found that the issue is related to XCode 15 itself not with library, so in my case, it fixed by change deployment target in Pod file to 12

post_install do |installer|
	installer.generated_projects.each do |project|
		project.targets.each do |target|
				target.build_configurations.each do |config|
					config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"  # If using Apple silicon
					if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 12.0
						config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
					end
				end
		end
	end
end

crash in startPathMonitorNotifier

@sekny
Copy link

sekny commented Nov 17, 2023

I found that the issue is related to XCode 15 itself not with library, so in my case, it fixed by change deployment target in Pod file to 12

post_install do |installer|
	installer.generated_projects.each do |project|
		project.targets.each do |target|
				target.build_configurations.each do |config|
					config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"  # If using Apple silicon
					if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 12.0
						config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
					end
				end
		end
	end
end

crash in startPathMonitorNotifier

run pod deintegrate and pod install again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants