Closed NickGaens closed 4 years ago
Hey @NickGaens,
Thanks for getting in touch. I am not aware of any known issue related to this. What is the iOS version are you targeting? Can you share the detailed error logs or crash report of this issue?
@dhei, thx for replying.
The project is targeting iOS 11.0.
It's not an actual app crash, but rather a runtime error thrown out by the HockeySDK during initialization of the BITHockeyManager it seems. If I add an 'halt on all exceptions breakpoint' in Xcode, it catches this error and pauses on the first line of AppDelegate.swift:
class AppDelegate: UIResponder, UIApplicationDelegate
This is the source code I use for getting the BITHockeyManager fired up:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
let sharedHockeyManager = BITHockeyManager.shared()
sharedHockeyManager.configure(withIdentifier: "<identifier :-)>")
sharedHockeyManager.start()
}
Also, I checked the Console during the error, but only these two lines are printed out:
default 11:12:32.829501 +0100 MyApp [HockeySDK] -[BITCrashManager startManager]_block_invoke/1199 [HockeySDK] WARNING: Detecting crashes is NOT enabled due to running the app with a debugger attached. default 11:12:32.832860 +0100 MyApp [HockeySDK] void bit_fixBackupAttributeForURL(NSURL *__strong)_block_invoke/177 ERROR: Error while setting resource value: The file “Application Support” doesn’t exist.
edit: It seems the error is thrown after the
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool
method has returned.
Hi @NickGaens,
sorry for any confusion this has already caused you. This is actually a harmless message that should not be logged with the "error" label but as a debug information. This will be fixed in the next version of the SDK.
Best, Benjamin
PS: The logic for this is in this method.
When will this be addressed?
This was fixed in version 5.1.4, closing this issue.
Xcode 10.0 (10A255), HockeySDK-iOS (v5.1.4) via CocoaPods.
Hi, I'm getting the same error with this new version, what can I do?
[HockeySDK] -[BITCrashManager startManager]_block_invoke/1202 [HockeySDK] WARNING: Detecting crashes is NOT enabled due to running the app with a debugger attached.
[HockeySDK] void bit_fixBackupAttributeForURL(NSURL *__strong)_block_invoke/177 ERROR: Error while setting resource value: The file “Application Support” doesn’t exist.
[HockeySDK] -[BITCrashManager startManager]_block_invoke/1202 [HockeySDK] WARNING: Detecting crashes is NOT enabled due to running the app with a debugger attached.
is not an error, it means that you the HockeySDK cannot detect crashes because a debugger is attached. This is a limitation imposed on 3rd party crash reporters by iOS and Xcode.
[HockeySDK] void bit_fixBackupAttributeForURL(NSURL *__strong)_block_invoke/177 ERROR: Error while setting resource value: The file “Application Support” doesn’t exist.
This was supposed to be fixed. As described above, there is nothing for you to do and there are no side effects other than the message being off the wrong log level type.
I'm reopening the issue.
FYI I renamed the issue to better reflect what it is about.
Do you have
[HockeySDK] void bit_fixBackupAttributeForURL(NSURL *__strong)_block_invoke/177 ERROR: Error while setting resource value: The file “Application Support” doesn’t exist.
Only on the first launch of the app?
yes, just the firs time
Then yes I can confirm the issue is harmless and should be a debug log saying we are creating a file for the first time.
I am still getting the error in the latest version
Hey, @inPhilly, can you provide some more context on this? Which exactly? The one mentioned in the beginning of a thread, or this one?
Hi, @inPhilly, just a friendly ping here. Wanted you to know that fix with changed log level is merged, but not released yet; As for the initial question - it is just a harmless message, and you can just ignore it.
Xcode 9.3 beta 4, HockeySDK-iOS (v5.1.2) via CocoaPods.
When running my app (on either a simulator or a device), the following error message shows up in the console: