Home / IOS Development / ios – Real code with high energy impact xcode

ios – Real code with high energy impact xcode

Xcode shows high energy power with just one line, and my app is strongly based on the realm. And after running the app for a few minutes, the device gets overheated.

 target 'Realmtest' do
  pod 'RealmSwift'
 import UIKit
 import RealmSwift

class AppDelegate: UIResponder, UIApplicationDelegate {

 func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    _ = try! Realm() // if I comment this line, energy impact will be zero

    return true


enter image description here

I want to know what I am doing wrong and the right way to use the kingdom. Since my entire app is strongly based on the realm, it has become critical for me to fix this, and I really got no solution.

// ̵

2;- Update I have updated the Realm pod and below is the screenshot of my terminal after installing the updated pod.

After updating the podcast, I’m still facing this issue.

enter image description here

Source link