App is crashing due to mlmodel file url not found in iOS 13 beta and above - crash

Have been using ml model in my app.It was working awesome below iOS 13.But the same mlmodle get crashed in iOS 13 and above.Please guide me asap.I feel its a bug with Apple .PFB logs
[coreml] MLModelAsset: load failed with error Error
Domain=com.apple.CoreML Code=0 "Invalid URL for .mlmodel."
UserInfo={NSLocalizedDescription=Invalid URL for .mlmodel.}
2019-09-14 18:32:58.776078+0530 Testing[565:205914] [coreml]
MLModelAsset: modelWithError: load failed with error Error
Domain=com.apple.CoreML Code=0 "Invalid URL for .mlmodel."
UserInfo={NSLocalizedDescription=Invalid URL for .mlmodel.}
Fatal error: 'try!' expression unexpectedly raised an error: Error
Domain=com.apple.CoreML Code=0 "Invalid URL for .mlmodel."
UserInfo={NSLocalizedDescription=Invalid URL for .mlmodel.}:
2019-09-14 18:32:58.777056+0530 OrigoTesting[565:205914] Fatal error:
'try!' expression unexpectedly raised an error: Error
Domain=com.apple.CoreML Code=0 "Invalid URL for .mlmodel."
UserInfo={NSLocalizedDescription=Invalid URL for .mlmodel.}: file
ModelWrapper.swift, line 30
In My Model Wrapper file i have below code
public init(url: URL) {
print("url :\(url)")
self.model = try! TestModel(contentsOf: url)
}
This code works below iOS 13 very well.
Please guide.

The model will get compiled, when you bundle your app. For iOS 13 you have to search for .mlmodelc in your bundle, the .mlmodel file doesn't exist on your iPhone.

Use
URL(fileURLWithPath: modelDestination)
instead of
URL(string: modelDestination)
when creating the compiled url.

Related

Unable to create quarkus project on intellij

Getting the following error:
Initialization failed for 'https://code.quarkus.io' Please check URL, network and proxy settings. Error message: Cannot download 'https://code.quarkus.io/api/extensions': code.quarkus.io
Can't figure out where to start with this issue

Make sure the correct deployment target has been selected for its compilation in Xcode

I am using the following desiredCapabilities in my codeceptconf.js file.
Appium: { // IOS local Simulator iPhone 13
app: "./ipa/arvApp.app",
platform: "iOS",
desiredCapabilities: {
deviceName: "iPhone 13",
//os_version: "15.5",
"automationName": "XCUITest",
autoAcceptAlerts: 'true' ,
autoDissmissAlerts: 'true',
},
}
Facing the below error -
App Launch And Login options. --
Navigate to just browse in app and Login with Gmail
2022-10-04T17:44:00.627Z ERROR webdriver: Request failed with status 500 due to
unknown error: An unknown server-side error occurred while processing the command.
Original error: Simulator architecture is unsupported by the
'/Users/jule/Desktop/arive/automation/ipa/ariveApp.app' application. Make sure the
correct deployment target has been selected for its compilation in Xcode.
2022-10-04T17:44:00.628Z ERROR webdriver: unknown error: An unknown server-side
error occurred while processing the command. Original error: Simulator architecture is unsupported by the '/Users/jule/Desktop/arive/automation/ipa/ariveApp.app' application. Make sure the correct deployment target has been selected for its compilation in Xcode.
at getErrorFromResponseBody (/Users/jule/Desktop/arive/automation/node_modules/webdriver/build/utils.js:197:12)
at NodeJSRequest._request (/Users/jule/Desktop/arive/automation/node_modules/webdriver/build/request/index.js:166:60)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async startWebDriverSession (/Users/jule/Desktop/arive/automation/node_modules/webdriver/build/utils.js:67:20)
at async Function.newSession (/Users/jule/Desktop/arive/automation/node_modules/webdriver/build/index.js:46:45)
at async Object.remote (/Users/jule/Desktop/arive/automation/node_modules/webdriverio/build/index.js:77:22)
at async Appium._startBrowser (/Users/jule/Desktop/arive/automation/node_modules/codeceptjs/lib/helper/Appium.js:232:24)
Error: Can't connect to WebDriver.
Error: Failed to create session.
An unknown server-side error occurred while processing the command. Original error: Simulator architecture is unsupported by the '/Users/jule/Desktop/arive/automation/ipa/ariveApp.app' application. Make sure the correct deployment target has been selected for its compilation in Xcode.
Please make sure Selenium Server is running and accessible
I wait for element 30
✖ FAILED in 13ms
Please help to resolve this error.
Thanks

Migrating ZF2 to ZF3: Zend\Mvc\Router\Http\Segment was not found in the plugin manager

I'm migrating a ZF2 application to ZF3.
First I was getting the error:
Fatal error: Uncaught Zend\ModuleManager\Listener\Exception\RuntimeException: Could not find a valid ServiceManager for RoutePluginManager in /var/www/work/path/to/project/vendor/zendframework/zend-modulemanager/src/Listener/ServiceListener.php on line 202
Zend\ModuleManager\Listener\Exception\RuntimeException: Could not find a valid ServiceManager for RoutePluginManager in /var/www/work/path/to/project/vendor/zendframework/zend-modulemanager/src/Listener/ServiceListener.php on line 202
Adding of 'Zend\Router' to the modules array in the application.config.php solved the issue. But now I'm getting another error:
Fatal error: Uncaught Zend\ServiceManager\Exception\ServiceNotFoundException: A plugin by the name "Zend\Mvc\Router\Http\Segment" was not found in the plugin manager Zend\Router\RoutePluginManager in /var/www/work/path/to/project/vendor/zendframework/zend-servicemanager/src/AbstractPluginManager.php on line 131
Zend\ServiceManager\Exception\ServiceNotFoundException: A plugin by the name "Zend\Mvc\Router\Http\Segment" was not found in the plugin manager Zend\Router\RoutePluginManager in /var/www/work/path/to/project/vendor/zendframework/zend-servicemanager/src/AbstractPluginManager.php on line 131
What might cause this error and how to fix it?
Caused by Zend\Mvc\Router has been moved to Zend\Router, so just replace Zend\Mvc\Router\Http\Segment to Zend\Router\Http\Segment

TouchID crash on some iPhone 5S devices

My app crashes on some iPhone 5S device (only some) with the error:
Fatal Exception: NSInternalInconsistencyException Unexpected error:
Error Domain=NSCocoaErrorDomain Code=4097 "The operation couldn’t be
completed. (Cocoa error 4097.)" (connection to service named
com.apple.CoreAuthentication.daemon) UserInfo=0x174461dc0
{NSDebugDescription=connection to service named
com.apple.CoreAuthentication.daemon}
The line which breaks the app is the following:
LAContext().canEvaluatePolicy(LAPolicy.DeviceOwnerAuthenticationWithBiometrics, error: nil)
Is this an Apple bug?
What am I doing wrong here?
It's an iOS bug. When an API returns a 4097 error, it usually means that the system daemon that was responsible for handling your request crashed. You can look for crash logs from the device and file a bug with Apple.

Error when updating

I got this error message when updating to IP 4.2.6:
Warning: require_once(Ip/script/run.php) [function.require-once]:
failed to open stream:
No such file or directory in /home/stenly/public_html/index.php on line 14
Fatal error: require_once() [function.require]:
Failed opening required 'Ip/script/run.php' (include_path='.:/usr/lib/php:/usr/local/lib/php')
in /home/stenly/public_html/index.php on line 14
What could have gone wrong and is there a solution to this as the website is an active and busy website?
I don't know how that could happen. But try to take Ip/script/run.php from downloaded archive (http://download.impresspages.org/ImpressPages_4_2_6.zip) and palce it on your server.