xcode Crashlytics Framework 未检测到 iOS 上的信息 plist
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/30469632/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Crashlytics Framework doesn't detect the Info plist on iOS
提问by Ofcourse
I am trying to add Crashlytics framework in my project, however, when I go through the process and reach the point where I add the framework to the project. The "Fabric" script plugin on the Mac doesn't detect that the frame work has been add to the project, and I think because the it doesn't detect the Info.plist in my project as I have changed the name of the Info.plist to something else. I have tried to change it back to Info.plist but still doesn't work. How can I make the framework to detect the info.plist in my project.
我正在尝试在我的项目中添加 Crashlytics 框架,但是,当我完成该过程并达到将框架添加到项目的程度时。Mac 上的“Fabric”脚本插件没有检测到框架工作已添加到项目中,我认为是因为它没有检测到我的项目中的 Info.plist,因为我更改了 Info 的名称.plist 到别的东西。我试图将它改回 Info.plist 但仍然不起作用。如何让框架检测我的项目中的 info.plist。
Thanks
谢谢
回答by Eric Internicola
I'm not sure if what I encountered was the same thing, but when trying to archive my project, I received the following error:
我不确定我遇到的是否是同一件事,但是在尝试存档我的项目时,我收到以下错误:
? error: Fabric: Info.plist Error
? 错误:织物:Info.plist 错误
I poked through the output in XCode which mentioned it could be a timing issue and to make sure that I made the "Fabric" build phase one of the last build phases. So I updated the XCode configuration and made the Fabric step run just before the "Upload Symbols to Fabric" step, and this cleared up the issue. See the image below.
我查看了 XCode 中的输出,其中提到这可能是一个时间问题,并确保我将“Fabric”构建阶段作为最后一个构建阶段之一。因此,我更新了 XCode 配置并使 Fabric 步骤在“将符号上传到 Fabric”步骤之前运行,这解决了问题。见下图。
回答by itinance
The root cause for me was an empty Bundle Identifier(although the key was set in info.plist).
我的根本原因是一个空的 Bundle Identifier(虽然键是在 info.plist 中设置的)。
After setting up a new XCode-project as a copy of another one i copied the info.plist with all keys into the new project. But it uses variables like $(PRODUCT_BUNDLE_IDENTIFIER), which was assigned somewhere else (maybe in the project file, that i haven't copied also)
将新的 XCode 项目设置为另一个项目的副本后,我将带有所有键的 info.plist 复制到新项目中。但它使用像 $(PRODUCT_BUNDLE_IDENTIFIER) 这样的变量,它被分配到其他地方(可能在项目文件中,我也没有复制)
In the screenshot the field with the round oval was empty then as a result. After applying the correct bundle identifier, everything has built fine.
在屏幕截图中,带有圆形椭圆形的字段是空的。应用正确的包标识符后,一切都很好。
回答by Nullify
Xcode 10 only:
仅限 Xcode 10:
Add your app's built Info.plist location to the Build Phase's Input Files field:
将您应用的构建 Info.plist 位置添加到构建阶段的输入文件字段:
$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)
回答by sherin s
回答by Jasper
Did you add the Fabric NSDictionary
entry to your .plist(s)?
您是否将 FabricNSDictionary
条目添加到您的 .plist(s) 中?
回答by Bhavik Modi
Set absolute path of Info.plist in "Input Files"
在“输入文件”中设置 Info.plist 的绝对路径
- Add/Change "Input Files" value in Run Script added for Fabric under "Build Phases"
- From "$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)" To "new path*/Info.plist"
- 在“构建阶段”下为 Fabric 添加的运行脚本中添加/更改“输入文件”值
- 从“$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)”到“新路径*/Info.plist”
*new path: You can also get Info.plist path from Build Settings -> Packaging -> Info.plist File
*新路径:您还可以从 Build Settings -> Packaging -> Info.plist File 获取 Info.plist 路径
回答by Akshay Jadhav
Add your app's built Info.plist location to the Build Phase's Input Files field:
将您应用的构建 Info.plist 位置添加到构建阶段的输入文件字段:
$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)
$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)
Note: Put exact same lines as given above to resolve this issue I am using Xcode_10.1 and this is working perfectly fine for me and on Fabric official website they specifically mention the same solution as given abovePlease refer this image to see attached screenshots of Xcode to get more details about where to put this line
注意:使用与上面给出的完全相同的行来解决这个问题我正在使用 Xcode_10.1 并且这对我来说非常好,并且在Fabric 官方网站上他们特别提到了与上面给出的相同的解决方案请参考此图片以查看附加的屏幕截图Xcode 以获取有关此行放置位置的更多详细信息
回答by nibajin
Xcode 10 only:
仅限 Xcode 10:
Add your app's built Info.plist location to the Build Phase's Input Files field:
将您应用的构建 Info.plist 位置添加到构建阶段的输入文件字段:
$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)
$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)
at the same time, Move the runscript to the last row.
同时,将运行脚本移动到最后一行。