[英]How can i test my expo app in bare workflow on IOS device?
I just ejected my Expo app to access to in app purchase feature.我刚刚退出了我的 Expo 应用程序以访问应用程序内购买功能。 But i don't know how to test my app on a physical apple device to test my IAP feature (without test flight because i want to see my logs to debug more easly).但我不知道如何在物理苹果设备上测试我的应用程序来测试我的 IAP 功能(没有试飞,因为我想查看我的日志以更轻松地调试)。 Is there a way for that ?有办法吗?
You can use these alternatives:您可以使用以下替代方法:
1- Lumberjack 1-伐木工人
CocoaLumberjack is a fast & simple, yet powerful & flexible logging framework for macOS, iOS, tvOS and watchOS. CocoaLumberjack 是适用于 macOS、iOS、tvOS 和 watchOS 的快速简单但功能强大且灵活的日志记录框架。
2- LibComponentLogging 2- LibComponentLogging
LibComponentLogging is a small logging library for Objective-C on Mac OS X and iOS which provides log levels, log components, and pluggable logging back-ends, eg writing log messages to a file, or sending them to the system log. LibComponentLogging 是一个用于 Mac OS X 和 iOS 上的 Objective-C 的小型日志库,它提供日志级别、日志组件和可插入的日志后端,例如将日志消息写入文件,或将它们发送到系统日志。
NSLogger is a high performance logging utility which displays traces emitted by client applications running on macOS, iOS and Android. NSLogger 是一个高性能日志实用程序,它显示运行在 macOS、iOS 和 Android 上的客户端应用程序发出的跟踪记录。 It replaces traditional console logging traces (NSLog(), Java Log).它取代了传统的控制台日志跟踪(NSLog()、Java Log)。
The NSLogger Viewer runs on macOS and replaces Xcode, Android Studio or Eclipse consoles. NSLogger 查看器在 macOS 上运行并取代 Xcode、Android Studio 或 Eclipse 控制台。 It provides powerful additions like display filtering, defining log domain and level, image and binary logging, message coloring, traces buffering, timing information, link with source code, etc.它提供了强大的附加功能,例如显示过滤、定义日志域和级别、图像和二进制日志记录、消息着色、跟踪缓冲、计时信息、与源代码的链接等。
Maybe you can try expo run:ios -d
?也许您可以尝试expo run:ios -d
?
-d
allows you to choose one of your connected devices :) -d
允许您选择连接的设备之一:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.