正如标题所说,我无法在设备或模拟器上安装我的应用程序(但是构建成功)。只有当我使用Cocoapods时,安装才会失败。
出现这种情况的原因似乎是它找不到安装的各个pods的Info.plist文件。
当我安装到模拟器时,我得到错误消息:
“此时无法安装此应用程序:无法从路径处的捆绑包加载Info.plist ...有关plist的额外信息: ACL=”
当我安装到我的设备时,我得到错误消息:
“无法安装。”详细信息中的失败原因是“无法检查应用程序包”。
失败的pod(例如)是ZIPFoundation和ReachabilitySwift。
在Pods项目下,如果我在Targets下选择框架,则没有可用的Info.plist文件,所以我不确定是否在pods安装过程中没有复制plist文件。
# Uncomment the next line to define a global platform for your project
platform :ios, '11.0'
target 'app' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for app
pod 'ReachabilitySwift'
pod 'ZIPFoundation'
target 'appTests' do
inherit! :search_paths
# Pods for testing
end
target 'appUITests' do
# Pods for testing
end
end我在Xcode 11.2.1中使用Swift 5。
我已经尝试了相当多的解决办法,但没有解决方案,所以任何关于这个问题的提示和信息都将不胜感激,因为我目前无法在我的项目中使用任何Pod。
编辑:
我用一个新的项目重现了这个问题。
在项目文件夹中,运行pod init。Add pod 'ReachabilitySwift‘pod安装开放工作区构建并在模拟器->上运行“此应用程序无法在此时安装”
同样,我们使用的是Xcode11.2.1。
发布于 2020-11-06 14:54:56
我今天遇到了同样的问题。运行pod install后,我的cocoapods对于任何项目都会卡住。就在安装了https://github.com/yiplee/YPNavigationBarTransition之后,它突然发生了。
然后我立即卸载了这个插件,并完全清除了缓存。还重新安装了cocoapods。不走运。我正在尝试将Xcode升级到12,希望奇迹发生。
编辑:解决方法是为所有pod添加一个假plist
general_pod_info.plist
<?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>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>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>4.3.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>${CURRENT_PROJECT_VERSION}</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>

发布于 2020-01-28 18:32:33
在我的案例中,从Podfile中删除use_frameworks!是解决方案。下面的帖子帮助我找到了https://forums.developer.apple.com/thread/126598#398211
https://stackoverflow.com/questions/59688834
复制相似问题