Xcode Sanitizers and Runtime Issues

RSS for tag

Xcode Runtime Issues are reports of programming errors found at run time. Issues can be found by variety of tools, including Address Sanitizer (ASan), Main Thread Checker (MTC), Thread Sanitizer (TSan), and Undefined Behavior Sanitizer (UBSan).

Xcode Runtime Issues Documentation

Posts under Xcode Sanitizers and Runtime Issues tag

28 Posts
Sort by:
Post not yet marked as solved
2 Replies
1.5k Views
I am using Xcode 14.3 and when Issue that says "Could not find bundle inside /Library/Developer/CommandLineTools under scntool". I searched this up and tried reinstalling CommandLineTools, reinstalling xcode, and reseting xcode. Here are screenshots of the issue: https://docs.google.com/document/d/1H6HsoZoJhISMo-5cXG-kN0hat6jftcujL1iYK2TRkeA/edit And here is the code: https://github.com/EnderRobber101/Xcode Is there a solution? Please inform me of the solution. Thank you for reading.
Posted
by EnderRob.
Last updated
.
Post not yet marked as solved
3 Replies
2.2k Views
Hi! I am getting the next warning returned when the textfield is focused. Xcode version: 14.3.1. Should I ignore it ? 2023-09-06 20:55:04.483056+0200 Delete1[6598:29619] [Query] Error for >queryMetaDataSync: 2 2023-09-06 20:55:04.487287+0200 Delete1[6598:29619] [Query] Error for >queryMetaDataSync: 2 2023-09-06 20:55:04.974905+0200 Delete1[6598:30000] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x6000026e3f60> F8BB1C28-BAE8-11D6-9C31-00039315CD46 import SwiftUI struct ContentView: View { @State private var username: String = "" @FocusState private var usernameInFocus: Bool var body: some View { VStack { TextField("Addd", text: $username) .focused($usernameInFocus) .padding(.leading) .frame(height:55) .frame(maxWidth: .infinity) .background(Color.gray.brightness(0.3)) .cornerRadius(10) Button("toggle"){ usernameInFocus.toggle() } } .padding(44) } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } }
Posted Last updated
.
Post not yet marked as solved
4 Replies
2.3k Views
Hi, I am working on the apple pie project trying to figure out why this line of code is outputting an error. all of my connections are correct and I have double checked them and the game file is correct as well. how can I remove this error and continue the project? [
Posted Last updated
.
Post not yet marked as solved
1 Replies
1.2k Views
I'm working on a weather and news app, and when I run the app on my device, it says "This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the -locationManagerDidChangeAuthorization: callback and checking authorizationStatus first." I am getting the error, what should I do? This error message appears on two lines with the CLLocationManager.locationServicesEnabled() else { method. I have added the codes of the page where I got the error below. I am using openweathermap API as weather API and newsapi API as news API. import Foundation import CoreLocation import Combine typealias LocationNameResultType = Result&lt;String, Error&gt; class WeatherService: WeatherServiceProtocol { private let apiProvider = APIProvider&lt;WeatherEndpoint&gt;() private let locationManager = CLLocationManager() private lazy var location: CLLocation? = locationManager.location init() { startUpdatingLocation() } func getCityName(completion: @escaping (LocationNameResultType) -&gt; Void) { guard let location = location else { completion(.failure(WeatherServiceErrors.locationNil)) return } let geocoder = CLGeocoder() geocoder.reverseGeocodeLocation(location) { (placemarks, error) in if let error = error { completion(.failure(error)) } guard let placemark = placemarks?.first, let cityName = placemark.locality else { completion(.failure(WeatherServiceErrors.placeMarkNil)) return } completion(.success(cityName)) } } func requestCurrentWeather() -&gt; AnyPublisher&lt;Data, Error&gt; { locationManager.requestWhenInUseAuthorization() guard CLLocationManager.locationServicesEnabled() else { return Fail(error: WeatherServiceErrors.userDeniedWhenInUseAuthorization) .eraseToAnyPublisher() } locationManager.desiredAccuracy = kCLLocationAccuracyNearestTenMeters locationManager.startUpdatingLocation() guard let location = location else { return Fail(error: WeatherServiceErrors.locationNil) .eraseToAnyPublisher() } return apiProvider.getData( from: .getCurrentWeather(latitude: location.coordinate.latitude, longitude: location.coordinate.longitude) ) .eraseToAnyPublisher() } deinit { stopUpdatingLocation() } } private extension WeatherService { func startUpdatingLocation() { locationManager.requestWhenInUseAuthorization() guard CLLocationManager.locationServicesEnabled() else { return } locationManager.desiredAccuracy = kCLLocationAccuracyNearestTenMeters locationManager.startUpdatingLocation() } func stopUpdatingLocation() { locationManager.stopUpdatingLocation() } }
Posted Last updated
.
Post not yet marked as solved
1 Replies
1.7k Views
Hi! I am trying to build a Flutter project, but I keep getting this message : Target Support Files/GoogleUserMessagingPlatform/GoogleUserMessagingPlatform-xcframeworks.sh: Permission denied Command PhaseScriptExecution failed with a nonzero exit code I tried pod init / pod install / etc. but I get messages there like _ [!] No Xcode project found, please specify one _
Posted Last updated
.
Post not yet marked as solved
6 Replies
3.8k Views
Hello team can you please help me to resolve this issue Executable Path is a Directory Domain: DVTMachOErrorDomain Code: 5 Recovery Suggestion: /Users/macdevelopername/Library/Developer/Xcode/DerivedData/gopapp-aidgtlievbwsjgdfdydbgdajgjgw/Build/Products/Debug-iphonesimulator/gopapp.app is not a valid path to an executable file. User Info: {   DVTErrorCreationDateKey = "2022-11-09 06:23:30 +0000"; } -- System Information macOS Version 12.5 (Build 21G72) Xcode 14.1 (21534.1) (Build 14B47b) Timestamp: 2022-11-09T11:53:30+05:30
Posted
by iTapDev.
Last updated
.
Post not yet marked as solved
2 Replies
3.6k Views
Hi, I have a project written in Swift 4 and the following pods are being used in the project: 'GoogleAnalytics' 'GoogleMaps' 'GooglePlaces' 'CarbonKit' 'Firebase/Core' 'Firebase/Messaging' 'Fabric' 'Crashlytics' 'JGProgressHUD' "QBImagePickerController" "YoutubePlayer-in-WKWebView", "~> 0.3.0" 'TrustKit' 'SwiftDate', '~> 5.0' When I am trying to build the same code in XCode version 11.3.1 (11C505), it’s working fine.  But the same code when I am running in XCode version 12.4 (12D4e), it’s showing the following error:  PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/pradip.deore/Library/Developer/Xcode/DerivedData/Re-DeploymentApp-cckdvghmcfgjmdgatkuburgwfion/Build/Intermediates.noindex/Re-Deployment\ App.build/Debug-iphonesimulator/Re-Deployment\ App.build/Script-CE61236C3D7447A8846EA69E.sh (in target 'Re-Deployment App' from project 'Re-Deployment App')   cd /Users/pradip.deore/Projects/iOSemployer   /bin/sh -c /Users/pradip.deore/Library/Developer/Xcode/DerivedData/Re-DeploymentApp-cckdvghmcfgjmdgatkuburgwfion/Build/Intermediates.noindex/Re-Deployment\\\ App.build/Debug-iphonesimulator/Re-Deployment\\\ App.build/Script-CE61236C3D7447A8846EA69E.sh mkdir -p /Users/pradip.deore/Library/Developer/Xcode/DerivedData/Re-DeploymentApp-cckdvghmcfgjmdgatkuburgwfion/Build/Products/Debug-iphonesimulator/ClikSource.app/Frameworks rsync --delete -av --filter P .*.?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "/Users/pradip.deore/Library/Developer/Xcode/DerivedData/Re-DeploymentApp-cckdvghmcfgjmdgatkuburgwfion/Build/Products/Debug-iphonesimulator/CarbonKit/CarbonKit.framework" "/Users/pradip.deore/Library/Developer/Xcode/DerivedData/Re-DeploymentApp-cckdvghmcfgjmdgatkuburgwfion/Build/Products/Debug-iphonesimulator/ClikSource.app/Frameworks" building file list ... done sent 205 bytes received 20 bytes 450.00 bytes/sec total size is 188599 speedup is 838.22 /Users/pradip.deore/Projects/iOS_employer/Pods/Target Support Files/Pods-Re-Deployment App/Pods-Re-Deployment App-frameworks.sh: line 131: ARCHS[@]: unbound variable Command PhaseScriptExecution failed with a nonzero exit code I am unable to find a solution for this. Please help to resolve this issue. 
Posted Last updated
.