简体   繁体   English

构建 info.plist 属性的问题(React-native IOS)

[英]Problems to build info.plist property (React-native IOS)

I'm trying to run yarn ios to build my app.我正在尝试运行 yarn ios 来构建我的应用程序。

But I have an exception:但我有一个例外:

ProcessInfoPlistFile /Users/flavio.luiz/Library/Developer/Xcode/DerivedData/growerdiariesapp-fsidgwpdrbcpxubccmkpffoykvsz/Build/Products/Debug-iphonesimulator/growerdiariesapp.app/Info.plist /Users/flavio.luiz/Documents/learning/grower-diaries-app/growerdiariesapp/ios/growerdiariesapp/Info.plist (in target 'growerdiariesapp' from project 'growerdiariesapp')
    cd /Users/flavio.luiz/Documents/learning/grower-diaries-app/growerdiariesapp/ios
    builtin-infoPlistUtility /Users/flavio.luiz/Documents/learning/grower-diaries-app/growerdiariesapp/ios/growerdiariesapp/Info.plist -producttype com.apple.product-type.application -genpkginfo /Users/flavio.luiz/Library/Developer/Xcode/DerivedData/growerdiariesapp-fsidgwpdrbcpxubccmkpffoykvsz/Build/Products/Debug-iphonesimulator/growerdiariesapp.app/PkgInfo -expandbuildsettings -format binary -platform iphonesimulator -additionalcontentfile /Users/flavio.luiz/Library/Developer/Xcode/DerivedData/growerdiariesapp-fsidgwpdrbcpxubccmkpffoykvsz/Build/Intermediates.noindex/growerdiariesapp.build/Debug-iphonesimulator/growerdiariesapp.build/LaunchScreen-SBPartialInfo.plist -additionalcontentfile /Users/flavio.luiz/Library/Developer/Xcode/DerivedData/growerdiariesapp-fsidgwpdrbcpxubccmkpffoykvsz/Build/Intermediates.noindex/growerdiariesapp.build/Debug-iphonesimulator/growerdiariesapp.build/assetcatalog_generated_info.plist -o /Users/flavio.luiz/Library/Developer/Xcode/DerivedData/growerdiariesapp-fsidgwpdrbcpxubccmkpffoykvsz/Build/Products/Debug-iphonesimulator/growerdiariesapp.app/Info.plist
error: unable to read property list from file: /Users/flavio.luiz/Documents/learning/grower-diaries-app/growerdiariesapp/ios/growerdiariesapp/Info.plist: The operation couldn’t be completed. (XCBUtil.PropertyListConversionError error 1.) (in target 'growerdiariesapp' from project 'growerdiariesapp')

i think that could be a problem with the properties of the info list.我认为这可能是信息列表属性的问题。 I recently changed the file to remove react-native-vector-icons:我最近更改了文件以删除 react-native-vector-icons:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>CFBundleDevelopmentRegion</key>
    <string>en</string>
    <key>CFBundleDisplayName</key>
    <string>grower diaries</string>
    <key>CFBundleExecutable</key>
    <string>$(EXECUTABLE_NAME)</string>
    <key>CFBundleIdentifier</key>
    <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>$(PRODUCT_NAME)</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleShortVersionString</key>
    <string>1.0</string>
    <key>CFBundleSignature</key>
    <string>????</string>
    <key>CFBundleVersion</key>
    <string>1</string>
    <key>LSRequiresIPhoneOS</key>
    <true/>
    <key>NSAppTransportSecurity</key>
    <dict>
        <key>NSExceptionDomains</key>
        <dict>
            <key>localhost</key>
            <dict>
                <key>NSExceptionAllowsInsecureHTTPLoads</key>
                <true/>
            </dict>
        </dict>
    </dict>
    <key>NSLocationWhenInUseUsageDescription</key>
    <string/>
    <key>UILaunchStoryboardName</key>
    <string>LaunchScreen</string>
    <key>UIRequiredDeviceCapabilities</key>
    <array>
        <string>armv7</string>
    </array>
    <key>UISupportedInterfaceOrientations</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
        <string>UIInterfaceOrientationLandscapeLeft</string>
        <string>UIInterfaceOrientationLandscapeRight</string>
    </array>
    <key>UIViewControllerBasedStatusBarAppearance</key>
    <false/>
    <key>UIAppFonts</key>
</dict>
</plist>

I just tried plutil info.plist and that is the answer:我刚试过plutil info.plist这就是答案:

info.plist: Value missing for key inside <dict> at line 55

Does anybody know how to solve this problem?有谁知道如何解决这个问题?

I got it.我知道了。

I just remove UIAppFonts key from Info.plist and it worked.我只是从 Info.plist 中删除 UIAppFonts 键,它就起作用了。 Key are declared but has no value reference.键已声明但没有值引用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 react-native 项目中保存 info.plist 中的更改 - How to save changes in info.plist in react-native project React Native Expo iOS应用程序 - 尝试修改info.plist - React Native Expo iOS app - trying to modify info.plist Ios react-native 无法部署到应用商店获取 ITMS-90683:Info.plist 中缺少目的字符串 - Ios react-native cant deploy to app store getting ITMS-90683: Missing Purpose String in Info.plist 如何在弹出的 react-native 应用程序中配置 Info.plist 文件使用 expo sdk - How to configure Info.plist file in ejected react-native app uses expo sdk 使用expo SDK的react native ios app的Info.plist文件 - Info.plist file for react native ios app using expo SDK 由于来自appstore的Info.plist文件中缺少目的字符串,拒绝响应本机iOS应用程序 - Rejected react native iOS app due to Missing Purpose String in Info.plist File from appstore 尽管有info.plist属性,Xamarin IOS项目仍允许旋转 - Xamarin IOS project allows rotation despite info.plist property iOS:在构建阶段更改info.plist - iOS: Changing info.plist during build phase Expo Ios 构建不包含有效的 Info.plist? - Expo Ios Build Does Not Contain Valid Info.plist? 将文件添加到 Info.plist WebView React Native 中的 LSApplicationQueriesSchemes - Add file to LSApplicationQueriesSchemes in your Info.plist WebView React Native
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM