Code: Select all
import UIKit
import React
import React_RCTAppDelegate
import ReactAppDependencyProvider
import AirohaUnifyLibrary // it is working
@main
class AppDelegate: RCTAppDelegate {
override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
self.moduleName = "AndTunesApp"
self.dependencyProvider = RCTAppDependencyProvider()
// You can add your custom initial props in the dictionary below.
// They will be passed down to the ViewController used by React Native.
self.initialProps = [:]
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
override func sourceURL(for bridge: RCTBridge) -> URL? {
self.bundleURL()
}
override func bundleURL() -> URL? {
#if DEBUG
RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")
#else
Bundle.main.url(forResource: "main", withExtension: "jsbundle")
#endif
}
}
< /code>
Dann erstelle ich ein testFramework.wift auf demselben Stamm, [url=viewtopic.php?t=8986]importieren[/url] das Framework Fehler < /p>
No such module 'AirohaUnifyLibrary'
TestFramework.swift
Code: Select all
import Foundation
import AirohaUnifyLibrary // No such module 'AirohaUnifyLibrary'
Code: Select all
$(inherited)
"${PODS_ROOT}/hermes-engine/destroot/Library/Frameworks/universal"
"${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/Pre-built"