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


pals! 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 effective on Android. However when operating 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 mechanically hidden after default timeout. It’s best to name SplashScreen.conceal() as quickly as your internet 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 seems, which disappears after 2 seconds after which a clean display…
In the meanwhile, there is no such thing as a longer entry to Apple gadgets and Xcode. Due to this fact, I construct the appliance in Ionic Appflow, and check runs within the app time.io Due to this fact, sadly, I won’t be able to throw off extra detailed logs … Possibly somebody has encountered one thing related, I’ll be glad about any assist. Listed below are some information to grasp:

package deal.json

{
  "title": "capacitor-app",
  "model": "2408.0.24",
  "description": "An Superb Capacitor App",
  "fundamental": "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/belongings": "^3.0.5",
    "@capacitor/cli": "^6.1.2",
    "vite": "^2.9.13"
  },
  "writer": "",
  "license": "ISC"
}

capacitor.config.json

{
  "appId": "check.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)
    }
}

Most important.storyboard



    
        
    
    
        
        
    
    
        
        
            
                
                
            
        
    

LaunchScreen.storyboard



    
    
        
        
        
        
    
    
        
        
            
                
                    
                        
                        
                        
                    
                
                
            
            
        
    
    
        
        
            
        
    

Information.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
    Most important
    UIRequiredDeviceCapabilities
    
        armv7
    
    UISupportedInterfaceOrientations
    
        UIInterfaceOrientationPortrait
        UIInterfaceOrientationLandscapeLeft
        UIInterfaceOrientationLandscapeRight
    
    UISupportedInterfaceOrientations~ipad
    
        UIInterfaceOrientationPortrait
        UIInterfaceOrientationPortraitUpsideDown
        UIInterfaceOrientationLandscapeLeft
        UIInterfaceOrientationLandscapeRight
    
    UIViewControllerBasedStatusBarAppearance
    


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

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

Capacitor makes use of the CAPBridgeViewController class (Most important.storyboard). I attempted to write down my very own class to deal with the show of MyViewController, nevertheless it can’t be discovered by AppDelegate (can not 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.fundamental.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 Most important.storyboard


What could possibly be the issue, perhaps somebody has encountered it? Thanks a lot prematurely for any assist

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles