ionic-team / ionic-portals-ios Goto Github PK
View Code? Open in Web Editor NEWPortals Library for iOS
Home Page: https://ionic.io/docs/portals
License: Other
Portals Library for iOS
Home Page: https://ionic.io/docs/portals
License: Other
if arm64 is added to Excluded Archives -> Any iOS Simulator SDK, then when trying to show any portal it just shows blank screen.
We would love to use Portals in a larger project, but the dependency on Cocoapods is a deal breaker.
Is there any plans on supporting SPM for iOS builds?
Installed the following pod: 'IonicPortals', '~> 0.5.0'
Got 2 runtime errors in XCode:
Help would be appreciated. Thanks in advance.
More info:
Podfile
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '13.0'
use_frameworks!
use_modular_headers!
def shared_pods
pod 'Firebase/Crashlytics'
pod 'Firebase/Analytics'
pod 'IonicPortals', '~> '0.5.0'
end
target "Core" do
pod 'RxSwift', '~> 5.1.1'
pod 'RxCocoa', '~> 5.1.1'
pod 'RxDataSources', '~> 4.0.1'
pod 'loady'
shared_pods
end
target "HIP" do
pod 'Batch', '~> 1.15'
shared_pods
end
target "CoreTests" do
inherit! :search_paths
pod 'RxBlocking', '~> 5.1.1'
pod 'RxTest', '~> 5.1.1'
end
Xcode Project:
Deployment target: iOS 13+
I drag IonicPortals.xcframework and Capacitor.xcframework into my project, but the following error occurred when I was running the app.
dyld[48160]: Symbol not found: _$s9Capacitor10CAPWebViewC18instanceDescriptorSo011CAPInstanceE0CyFTq
Referenced from: /Users/aragon-mini/Library/Developer/Xcode/DerivedData/IonicPortalDemo-cajlunqdxyxpbkctwamxtaqoiowo/Build/Products/Debug-iphonesimulator/IonicPortals.framework/IonicPortals
Expected in: /Users/aragon-mini/Library/Developer/Xcode/DerivedData/IonicPortalDemo-cajlunqdxyxpbkctwamxtaqoiowo/Build/Products/Debug-iphonesimulator/Capacitor.framework/Capacitor
Symbol not found: _$s9Capacitor10CAPWebViewC18instanceDescriptorSo011CAPInstanceE0CyFTq
Referenced from: /Users/aragon-mini/Library/Developer/Xcode/DerivedData/IonicPortalDemo-cajlunqdxyxpbkctwamxtaqoiowo/Build/Products/Debug-iphonesimulator/IonicPortals.framework/IonicPortals
Expected in: /Users/aragon-mini/Library/Developer/Xcode/DerivedData/IonicPortalDemo-cajlunqdxyxpbkctwamxtaqoiowo/Build/Products/Debug-iphonesimulator/Capacitor.framework/Capacitor
I use xcode 13 and my machine is Mac mini (M1, 2020) with MacOS Monterey (12.2.1).
Dear Ionic-team,
Ionic-portals works great when I build for a physical iPhone, however, I get the following linker-error when trying to build for an iOS-simulator:
ld: warning: ignoring file /Users/felix/project-ios/Pods/IonicLiveUpdates/IonicLiveUpdates.xcframework/ios-arm64/IonicLiveUpdates.framework/IonicLiveUpdates, building for iOS Simulator-x86_64 but attempting to link with file built for iOS-arm64
Undefined symbols for architecture x86_64:
"static IonicLiveUpdates.LiveUpdateManager.getLatestAppDirectory(Swift.String) -> Foundation.URL?", referenced from:
IonicPortals.PortalWebView.initView() -> () in PortalWebView.o
IonicPortals.PortalWebView.reload() -> () in PortalWebView.o
"type metadata accessor for IonicLiveUpdates.LiveUpdateManager", referenced from:
IonicPortals.PortalBuilder.setLiveUpdateConfig(liveUpdateConfig: IonicLiveUpdates.LiveUpdate, updateOnAppLoad: Swift.Bool) -> IonicPortals.PortalBuilder in PortalBuilder.o
IonicPortals.PortalWebView.initView() -> () in PortalWebView.o
IonicPortals.PortalWebView.reload() -> () in PortalWebView.o
"static IonicLiveUpdates.LiveUpdateManager.cleanVersions(Swift.String?) -> ()", referenced from:
IonicPortals.PortalBuilder.setLiveUpdateConfig(liveUpdateConfig: IonicLiveUpdates.LiveUpdate, updateOnAppLoad: Swift.Bool) -> IonicPortals.PortalBuilder in PortalBuilder.o
"static IonicLiveUpdates.LiveUpdateManager.sync(appId: Swift.String, channel: Swift.String, isParallel: Swift.Bool, callbacks: IonicLiveUpdates.ISyncCallback?) -> ()", referenced from:
IonicPortals.PortalBuilder.setLiveUpdateConfig(liveUpdateConfig: IonicLiveUpdates.LiveUpdate, updateOnAppLoad: Swift.Bool) -> IonicPortals.PortalBuilder in PortalBuilder.o
(maybe you meant: default argument 2 of static IonicLiveUpdates.LiveUpdateManager.sync(appId: Swift.String, channel: Swift.String, isParallel: Swift.Bool, callbacks: IonicLiveUpdates.ISyncCallback?) -> (), default argument 1 of static IonicLiveUpdates.LiveUpdateManager.sync(appId: Swift.String, channel: Swift.String, isParallel: Swift.Bool, callbacks: IonicLiveUpdates.ISyncCallback?) -> () )
"static IonicLiveUpdates.LiveUpdateManager.setupAppInstancesWithoutSync() -> ()", referenced from:
IonicPortals.PortalBuilder.setLiveUpdateConfig(liveUpdateConfig: IonicLiveUpdates.LiveUpdate, updateOnAppLoad: Swift.Bool) -> IonicPortals.PortalBuilder in PortalBuilder.o
"static IonicLiveUpdates.LiveUpdateManager.addLiveUpdateInstance(IonicLiveUpdates.LiveUpdate) -> ()", referenced from:
IonicPortals.PortalBuilder.setLiveUpdateConfig(liveUpdateConfig: IonicLiveUpdates.LiveUpdate, updateOnAppLoad: Swift.Bool) -> IonicPortals.PortalBuilder in PortalBuilder.o
"IonicLiveUpdates.LiveUpdate.appId.getter : Swift.String", referenced from:
IonicPortals.PortalBuilder.setLiveUpdateConfig(liveUpdateConfig: IonicLiveUpdates.LiveUpdate, updateOnAppLoad: Swift.Bool) -> IonicPortals.PortalBuilder in PortalBuilder.o
IonicPortals.PortalWebView.initView() -> () in PortalWebView.o
IonicPortals.PortalWebView.reload() -> () in PortalWebView.o
"nominal type descriptor for IonicLiveUpdates.LiveUpdate", referenced from:
_symbolic _____Sg 16IonicLiveUpdates0B6UpdateC in Portal.o
_symbolic _____Sg 16IonicLiveUpdates0B6UpdateC in PortalBuilder.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The following Xcode-screenshot contains more details:
The same error happened for both Portals-0.5.0 and Portals-0.4.2.
I use Xcode 13.2.1.
My machine is an x86-based iMac with macOS Big Sur 11.5.2.
Please let me know if you already experienced this issue before.
Regression of this issue? #46
Seems that this issue is back with the latest version of IonicPortals.
Console log in xcode says: ⚡️ Loading app at capacitor://localhost but blank screen in Simulator, on local device it works fine.
Recently, I have developed a new SWIFT PACKAGE and also add ionic-portal-ios as dependency.
How do I address WebApp to portal ?
Dear Ionic-team,
Ionic-portals works great when I build for a physical iPhone, however, I get the following linker-error when trying to build for an iOS-simulator:
ld: warning: ignoring file /Users/felix/project-ios/Pods/IonicLiveUpdates/IonicLiveUpdates.xcframework/ios-arm64/IonicLiveUpdates.framework/IonicLiveUpdates, building for iOS Simulator-x86_64 but attempting to link with file built for iOS-arm64
Undefined symbols for architecture x86_64:
"static IonicLiveUpdates.LiveUpdateManager.getLatestAppDirectory(Swift.String) -> Foundation.URL?", referenced from:
IonicPortals.PortalWebView.initView() -> () in PortalWebView.o
IonicPortals.PortalWebView.reload() -> () in PortalWebView.o
"type metadata accessor for IonicLiveUpdates.LiveUpdateManager", referenced from:
IonicPortals.PortalBuilder.setLiveUpdateConfig(liveUpdateConfig: IonicLiveUpdates.LiveUpdate, updateOnAppLoad: Swift.Bool) -> IonicPortals.PortalBuilder in PortalBuilder.o
IonicPortals.PortalWebView.initView() -> () in PortalWebView.o
IonicPortals.PortalWebView.reload() -> () in PortalWebView.o
"static IonicLiveUpdates.LiveUpdateManager.cleanVersions(Swift.String?) -> ()", referenced from:
IonicPortals.PortalBuilder.setLiveUpdateConfig(liveUpdateConfig: IonicLiveUpdates.LiveUpdate, updateOnAppLoad: Swift.Bool) -> IonicPortals.PortalBuilder in PortalBuilder.o
"static IonicLiveUpdates.LiveUpdateManager.sync(appId: Swift.String, channel: Swift.String, isParallel: Swift.Bool, callbacks: IonicLiveUpdates.ISyncCallback?) -> ()", referenced from:
IonicPortals.PortalBuilder.setLiveUpdateConfig(liveUpdateConfig: IonicLiveUpdates.LiveUpdate, updateOnAppLoad: Swift.Bool) -> IonicPortals.PortalBuilder in PortalBuilder.o
(maybe you meant: default argument 2 of static IonicLiveUpdates.LiveUpdateManager.sync(appId: Swift.String, channel: Swift.String, isParallel: Swift.Bool, callbacks: IonicLiveUpdates.ISyncCallback?) -> (), default argument 1 of static IonicLiveUpdates.LiveUpdateManager.sync(appId: Swift.String, channel: Swift.String, isParallel: Swift.Bool, callbacks: IonicLiveUpdates.ISyncCallback?) -> () )
"static IonicLiveUpdates.LiveUpdateManager.setupAppInstancesWithoutSync() -> ()", referenced from:
IonicPortals.PortalBuilder.setLiveUpdateConfig(liveUpdateConfig: IonicLiveUpdates.LiveUpdate, updateOnAppLoad: Swift.Bool) -> IonicPortals.PortalBuilder in PortalBuilder.o
"static IonicLiveUpdates.LiveUpdateManager.addLiveUpdateInstance(IonicLiveUpdates.LiveUpdate) -> ()", referenced from:
IonicPortals.PortalBuilder.setLiveUpdateConfig(liveUpdateConfig: IonicLiveUpdates.LiveUpdate, updateOnAppLoad: Swift.Bool) -> IonicPortals.PortalBuilder in PortalBuilder.o
"IonicLiveUpdates.LiveUpdate.appId.getter : Swift.String", referenced from:
IonicPortals.PortalBuilder.setLiveUpdateConfig(liveUpdateConfig: IonicLiveUpdates.LiveUpdate, updateOnAppLoad: Swift.Bool) -> IonicPortals.PortalBuilder in PortalBuilder.o
IonicPortals.PortalWebView.initView() -> () in PortalWebView.o
IonicPortals.PortalWebView.reload() -> () in PortalWebView.o
"nominal type descriptor for IonicLiveUpdates.LiveUpdate", referenced from:
_symbolic _____Sg 16IonicLiveUpdates0B6UpdateC in Portal.o
_symbolic _____Sg 16IonicLiveUpdates0B6UpdateC in PortalBuilder.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The following Xcode-screenshot contains more details:
The same error happened for both Portals-0.5.0 and Portals-0.4.2.
I use Xcode 13.2.1.
My machine is an x86-based iMac with macOS Big Sur 11.5.2.
Please let me know if you already experienced this issue before.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.