[英]Why the app is removed from the Build section in testflight after it is uploaded
[英]Why is TestFlight app different from local development?
我有一個帶有自定義本機插件的 React Native 應用程序。
當我在我的設備上使用 Xcode 測試該應用程序時,它運行良好。
我將完全相同的應用程序上傳到 App Store,但它被破壞了。
在我的 iPhone 上它實際上並沒有啟動,而在我的 iPad 上它是錯誤的:
不幸的是,我無法調試 TestFlight 應用程序。
有人知道為什么會發生這種情況嗎?
我發現了問題。 它在我的插件中以及我如何公開它。 我的index.ts
文件如下所示:
import { NativeModules } from 'react-native';
const { MyPlugin } = NativeModules;
export default MyPlugin;
沒有默認導出更好:
import { NativeModules } from 'react-native';
export const { MyPlugin } = NativeModules;
我不知道為什么默認導出在發布模式下不起作用。 我嘗試將所有發布標志都與默認值相同,但結果相同。 所以,只是改變出口方式就是解決它。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.