ios – Did not resolve host community app id Warning: -[BETextInput attributedMarkedText] is unimplemented

0
26
ios – Did not resolve host community app id Warning: -[BETextInput attributedMarkedText] is unimplemented


associates! We actually want your assist!! I’m making a cellular software utilizing Ioinic Capacitor (v6) for iOS and android. The applying is basically a hyperlink to a third-party web site that opens utilizing WebView. Every thing works high-quality on Android. However when working on the simulator, an error happens in Xcode:

Did not resolve host community app id
Warning: -[BETextInput attributedMarkedText] is unimplemented
⚡️ Loading app at capacitor://localhost…
⚡️ WebView loaded
SplashScreen.hideSplash: SplashScreen was routinely hidden after default timeout. It’s best to name SplashScreen.cover() as quickly as your net app is loaded (or improve the timeout). Learn extra at https://capacitorjs.com/docs/apis/splash-screen#hiding-the-splash-screen

The iOS app begins, a Splash Display screen seems, which disappears after 2 seconds after which a clean display screen…
In the mean time, there isn’t a longer entry to Apple units and Xcode. Due to this fact, I construct the appliance in Ionic Appflow, and take a look at runs within the app time.io Due to this fact, sadly, I will be unable to throw off extra detailed logs … Possibly somebody has encountered one thing related, I’ll be glad about any assist. Listed here are some recordsdata to grasp:

package deal.json

{
  "title": "capacitor-app",
  "model": "2408.0.24",
  "description": "An Wonderful Capacitor App",
  "foremost": "index.js",
  "key phrases": [
    "capacitor",
    "mobile"
  ],
  "scripts": {
    "begin": "vite",
    "construct": "vite construct",
    "preview": "vite preview"
  },
  "dependencies": {
    "@capacitor/android": "^6.1.2",
    "@capacitor/digicam": "newest",
    "@capacitor/core": "^6.1.2",
    "@capacitor/ios": "^6.1.2",
    "@capacitor/splash-screen": "newest"
  },
  "devDependencies": {
    "@capacitor/property": "^3.0.5",
    "@capacitor/cli": "^6.1.2",
    "vite": "^2.9.13"
  },
  "creator": "",
  "license": "ISC"
}

capacitor.config.json

{
  "appId": "take a look at.ios.app",
  "appName": "App",
  "webDir": "dist",
  "model": "2408.0.24",
  "server": {
    "iosScheme": "https"
  },
  "ios": {
    "construct": {
      "developmentTeam": ""
    }
  },
  "plugins": {
    "SplashScreen": {
      "launchShowDuration": 2000,
      "launchAutoHide": true,
      "launchFadeOutDuration": 2000,
      "androidScaleType": "FIT_XY",
      "backgroundColor": "#1F2131",
      "splashBackgroundColor": "#121617",
      "splashBackgroundColorDark": "#121617",
      "androidSplashResourceName": "splash",
      "androidSplashDarkResourceName": "splash",
      "showSpinner": false,
      "splashFullScreen": true,
      "splashImmersive": true,
      "layoutName": "launch_screen",
      "useDialog": true
    }
  }
}

AppDelegate.swift

import UIKit
import Capacitor

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func software(_ software: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        return true
    }

    func applicationWillResignActive(_ software: UIApplication) {
    }

    func applicationDidEnterBackground(_ software: UIApplication) {
    }

    func applicationWillEnterForeground(_ software: UIApplication) {
    }

    func applicationDidBecomeActive(_ software: UIApplication) {
    }

    func applicationWillTerminate(_ software: UIApplication) {
    }

    func software(_ app: UIApplication, open url: URL, choices: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
        return ApplicationDelegateProxy.shared.software(app, open: url, choices: choices)
    }

    func software(_ software: UIApplication, proceed userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
        return ApplicationDelegateProxy.shared.software(software, proceed: userActivity, restorationHandler: restorationHandler)
    }
}

Primary.storyboard



    
        
    
    
        
        
    
    
        
        
            
                
                
            
        
    

LaunchScreen.storyboard



    
    
        
        
        
        
    
    
        
        
            
                
                    
                        
                        
                        
                    
                
                
            
            
        
    
    
        
        
            
        
    

Data.plist





    CFBundleDevelopmentRegion
    en
    CFBundleDisplayName
        IQL
    CFBundleExecutable
    $(EXECUTABLE_NAME)
    CFBundleIdentifier
    $(PRODUCT_BUNDLE_IDENTIFIER)
    CFBundleInfoDictionaryVersion
    6.0
    CFBundleName
    $(PRODUCT_NAME)
    CFBundlePackageType
    APPL
    CFBundleShortVersionString
    $(MARKETING_VERSION)
    CFBundleVersion
    $(CURRENT_PROJECT_VERSION)
    LSRequiresIPhoneOS
    
    UILaunchStoryboardName
    LaunchScreen
    UIMainStoryboardFile
    Primary
    UIRequiredDeviceCapabilities
    
        armv7
    
    UISupportedInterfaceOrientations
    
        UIInterfaceOrientationPortrait
        UIInterfaceOrientationLandscapeLeft
        UIInterfaceOrientationLandscapeRight
    
    UISupportedInterfaceOrientations~ipad
    
        UIInterfaceOrientationPortrait
        UIInterfaceOrientationPortraitUpsideDown
        UIInterfaceOrientationLandscapeLeft
        UIInterfaceOrientationLandscapeRight
    
    UIViewControllerBasedStatusBarAppearance
    


Splash Display screen.cover() additionally doesn’t work in index.js (in the principle index.html ), sadly I am unable to add detailed logs…

registerPlugin("CapacitorHttp", {
  net: () => new CapacitorHttpPluginWeb()
});
const SplashScreen = registerPlugin("SplashScreen", {
  net: () => __vitePreload(() => import("./net.af70e0c8.js"), true ? [] : void 0).then((m) => new m.SplashScreenWeb())
});
window.addEventListener("DOMContentLoaded", () => {
  console.log("load app");
  SplashScreen.cover();
});

Capacitor makes use of the CAPBridgeViewController class (Primary.storyboard). I attempted to jot down my very own class to deal with the show of MyViewController, however it can’t be discovered by AppDelegate (can’t discover ‘MyViewController’ in scope) if I import MyViewController in AppDelegate (no such module ‘MyViewController’):

MyViewController.swift

import UIKit
import WebKit
import Capacitor


class MyViewController: CAPBridgeViewController, WKUIDelegate {
    
    var webView: WKWebView!
    
    override func loadView() {
        let webConfiguration = WKWebViewConfiguration()
        webView = WKWebView(body: .zero, configuration: webConfiguration)
        webView.uiDelegate = self
        webView.navigationDelegate = self
        view = webView
    }

    override func viewDidLoad() {
        tremendous.viewDidLoad()

        let myURL = URL(string: "https://iql.finance/")
        let myRequest = URLRequest(url: myURL)
        webView.load(myRequest)
    }
}

up to date AppDelegate

import UIKit
import Capacitor

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func software(_ software: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        window = UIWindow(body: UIScreen.foremost.bounds)
        let viewController = MyViewController()
        window?.rootViewController = viewController
        window?.makeKeyAndVisible()

        return true
    }

    func applicationWillResignActive(_ software: UIApplication) {}

    func applicationDidEnterBackground(_ software: UIApplication) {}

    func applicationWillEnterForeground(_ software: UIApplication) {}

    func applicationDidBecomeActive(_ software: UIApplication) {}

    func applicationWillTerminate(_ software: UIApplication) {}

    func software(_ app: UIApplication, open url: URL, choices: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
        return ApplicationDelegateProxy.shared.software(app, open: url, choices: choices)
    }

    func software(_ software: UIApplication, proceed userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
        return ApplicationDelegateProxy.shared.software(software, proceed: userActivity, restorationHandler: restorationHandler)
    }
}

and altering the CustomClass within the Primary.storyboard


What may very well be the issue, possibly somebody has encountered it? Thanks a lot upfront for any assist

LEAVE A REPLY

Please enter your comment!
Please enter your name here