- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我写了一个应用程序,在我的机器上编译和签名。它适用于我团队中的其他开发人员,但对于两个不同的人,一个使用 OS X Mavericks,一个使用 Yosemite,它会显示以下消息:
我能够在全新的 Yosemite 安装上重现该错误。发生这种情况时,这就是我在日志中看到的内容:
30/03/2015 22:43:26.266 SpotlightNetHelper[256]: [SLSUGGESTIONS] Location managed failed with error Error Domain=kCLErrorDomain Code=0 "The operation couldn’t be completed. (kCLErrorDomain error 0.)"
30/03/2015 22:43:27.250 CoreServicesUIAgent[263]: Error -60005 creating authorization
30/03/2015 22:43:27.357 CoreServicesUIAgent[263]: Error SecAssessmentCreate: The operation couldn’t be completed. (OSStatus error -67054.)
30/03/2015 22:43:31.687 com.apple.xpc.launchd[1]: (com.apple.xpc.launchd.oneshot.0x10000006.Screensaver Ninja[434]) Service exited due to signal: Killed: 9
环顾四周似乎签名可能是个问题,但我可以验证它是否成功(我认为):
$ codesign -dvvv --deep /Applications/Screensaver\ Ninja.app
Executable=/Applications/Screensaver Ninja.app/Contents/MacOS/Screensaver Ninja
Identifier=com.carouselapps.Screensaver-Ninja
Format=bundle with Mach-O thin (x86_64)
CodeDirectory v=20200 size=3338 flags=0x0(none) hashes=159+3 location=embedded
Hash type=sha1 size=20
CDHash=c6c5fc1072a7e495969c3223f0950ceb53e246a7
Signature size=8533
Authority=Developer ID Application: Carousel Apps Ltd (XHT4M2DATL)
Authority=Developer ID Certification Authority
Authority=Apple Root CA
Timestamp=30 Mar 2015 18:29:31
Info.plist entries=23
TeamIdentifier=XHT4M2DATL
Sealed Resources version=2 rules=12 files=35
Nested=Frameworks/libswiftObjectiveC.dylib
Nested=Frameworks/Sparkle.framework
Nested=Frameworks/Paddle.framework
Nested=Frameworks/HockeySDK.framework
Nested=Frameworks/libswiftCore.dylib
Nested=Frameworks/libswiftDispatch.dylib
Nested=Frameworks/libswiftFoundation.dylib
Nested=Frameworks/libswiftCoreGraphics.dylib
Nested=Frameworks/libswiftSecurity.dylib
Nested=Frameworks/libswiftDarwin.dylib
Nested=Frameworks/libswiftQuartzCore.dylib
Nested=Frameworks/libswiftAppKit.dylib
Internal requirements count=2 size=896
任何想法可能会发生什么?
可以在 https://s3.amazonaws.com/screensaver-ninja/macosx/ScreensaverNinja-1.0-alpha-1.dmg 上找到该应用程序
最佳答案
问题是由于这个选项:RemoveHeadersOnCopy,框架被它们的 header 被删除而被破坏。
从我的框架中删除该选项后,这个错误就消失了。这有助于:
$ codesign -dvvv --deep --verify /Applications/Screensaver\ Ninja.app
--prepared:/Applications/Screensaver Ninja.app/Contents/Frameworks/HockeySDK.framework/Versions/Current/.
--prepared:/Applications/Screensaver Ninja.app/Contents/Frameworks/HockeySDK.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/.
/Applications/Screensaver Ninja.app: a sealed resource is missing or invalid
In subcomponent: /Applications/Screensaver Ninja.app/Contents/Frameworks/HockeySDK.framework/Versions/Current/Frameworks/CrashReporter.framework
file missing: /Applications/Screensaver Ninja.app/Contents/Frameworks/HockeySDK.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/Headers/CrashReporter.h
file missing: /Applications/Screensaver Ninja.app/Contents/Frameworks/HockeySDK.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/Headers/PLCrashReportSignalInfo.h
file missing: /Applications/Screensaver Ninja.app/Contents/Frameworks/HockeySDK.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/Headers/PLCrashReportMachineInfo.h
file missing: /Applications/Screensaver Ninja.app/Contents/Frameworks/HockeySDK.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/Headers/PLCrashReportBinaryImageInfo.h
file missing: /Applications/Screensaver Ninja.app/Contents/Frameworks/HockeySDK.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/Headers/PLCrashReportExceptionInfo.h
file missing: /Applications/Screensaver Ninja.app/Contents/Frameworks/HockeySDK.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/Headers/PLCrashReportMachExceptionInfo.h
file missing: /Applications/Screensaver Ninja.app/Contents/Frameworks/HockeySDK.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/Headers/PLCrashReport.h
file missing: /Applications/Screensaver Ninja.app/Contents/Frameworks/HockeySDK.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/Headers/PLCrashReportSymbolInfo.h
file missing: /Applications/Screensaver Ninja.app/Contents/Frameworks/HockeySDK.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/Headers/PLCrashReportSystemInfo.h
file missing: /Applications/Screensaver Ninja.app/Contents/Frameworks/HockeySDK.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/Headers/PLCrashReporter.h
file missing: /Applications/Screensaver Ninja.app/Contents/Frameworks/HockeySDK.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/Headers/PLCrashNamespace.h
file missing: /Applications/Screensaver Ninja.app/Contents/Frameworks/HockeySDK.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/Headers/PLCrashReportProcessorInfo.h
file missing: /Applications/Screensaver Ninja.app/Contents/Frameworks/HockeySDK.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/Headers/PLCrashReportProcessInfo.h
file missing: /Applications/Screensaver Ninja.app/Contents/Frameworks/HockeySDK.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/Headers/PLCrashReportTextFormatter.h
file missing: /Applications/Screensaver Ninja.app/Contents/Frameworks/HockeySDK.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/Headers/PLCrashReporterConfig.h
file missing: /Applications/Screensaver Ninja.app/Contents/Frameworks/HockeySDK.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/Headers/PLCrashReportRegisterInfo.h
file missing: /Applications/Screensaver Ninja.app/Contents/Frameworks/HockeySDK.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/Headers/PLCrashReportStackFrameInfo.h
file missing: /Applications/Screensaver Ninja.app/Contents/Frameworks/HockeySDK.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/Headers/PLCrashReportThreadInfo.h
file missing: /Applications/Screensaver Ninja.app/Contents/Frameworks/HockeySDK.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/Headers/PLCrashReportFormatter.h
file missing: /Applications/Screensaver Ninja.app/Contents/Frameworks/HockeySDK.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/Headers/PLCrashReportApplicationInfo.h
file missing: /Applications/Screensaver Ninja.app/Contents/Frameworks/HockeySDK.framework/Versions/Current/Frameworks/CrashReporter.framework/Versions/Current/Headers/PLCrashFeatureConfig.h
我还需要按照 https://developer.apple.com/library/mac/documentation/IDEs/Conceptual/AppDistributionGuide/DistributingApplicationsOutside/DistributingApplicationsOutside.html 中解释的步骤进行操作拥有正确签名的 .app 文件。
关于macos - 当我的应用显示 : Application is damaged and can't be opened. 时发生了什么 您应该将其移至废纸篓,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29357027/
下面的代码旨在在首次打开工作簿时运行。 Sub Auto_Open() Dim LastRow As Integer LastRow = Sheet6.UsedRange.Rows.Count Act
当我尝试操作我的代码时,除了弹出调试错误外,它执行得很好。错误信息在这里。 我的完整代码在这里。 #include using namespace std; class String { publi
The invocation of the constructor on type 'WpfApplication1.MainWindow' that matches the specified bi
我正在使用 BaseAdapter: public class MyAdapter extends BaseAdapter{ private final LayoutInflater mInflate
我想做网页抓取。我写了代码 var connection = require('./mysqlConnection'); var c = new Crawler({ maxConnections
我的系统中发生 Java 堆空间错误。我尝试了很多来自 Stack Overflow 的解决方案,但没有任何效果。当我工作时 当按下 OK 然后 (我的项目没有错误) 我的 eclipse.ini 是
环境: i5 750 DDR3 4GWin7 专业版 x64 sp1 DXSDK 9.0c 2010 年 6 月 GeForce GT240(驱动程序 275.33)512MB MSVC 2008 s
这段代码是我写的。 import socket host = 'localhost' port = 3794 s = socket.socket(socket.AF_INET, socket.SOCK
我正在尝试引用 UTC 时间间隔获取本地日期时间,我正在执行下面的代码。 var dtString =DateTime.UtcNow.ToString(@"yyyy-MM-ddTHH\:mm\:ss
我有一个非常简单的 C# 问题,它从库中加载 Windows WPF 窗口。这是代码: public partial class App : Application { public App(
我目前正在使用带有导航组件的底部导航,它工作正常但是当我们点击导航项 fragment 正在加载然后闪烁正在发生,即使当前选择的项目也会发生闪烁。它在加载 fragment 时发生。我的应用程序屏幕背
我是新来的 kotlin , 当我开始 Null Safety 时,我对下面的情况感到困惑. There's some data inconsistency with regard to initia
我有一个框,其中包含同时发生的两个独立的 css 转换。 当转换发生时,图标下方的标题和段落文本移动位置 参见 JS Fiddle:http://jsfiddle.net/Lsnbpt8r/ 这是我的
在为黑莓 10 构建电话间隙应用程序时,我遇到了异常情况。 [BUILD] Populating application source [BUILD] Parsing config.xml [
这个问题在这里已经有了答案: How to properly stop the Thread in Java? (8 个回答) 3年前关闭。 我看过How to properly stop the T
我试图弄清楚发生 fatal error 时如何刷新页面。基本上我正在访问图像 api 并将图像复制到我的服务器。我还每次都创建照片的缩略图版本。我会每隔一段时间收到一条错误消息,指出我的脚本试图分配
我正在尝试使用断言函数检查元素是否在屏幕上。我在我的测试应用程序 (AndroidDriver) 中使用 Appium 和 Java。我期望的是,如果元素在屏幕上,则返回 1;如果不在屏幕上,则返回
我正在开发图像上传系统。我使用 CommonsMultipartResolver 设置 maxUploadSize。当我尝试上传超过最大尺寸的图像文件时,会发生 MaxUploadSizeExcced
我有以下代码和@ComponentScan(basePackages = "com.project.shopping"),包结构为 com.project.shopping.Controller co
我尝试运行此程序作为测试,但收到错误“发生了 JNI 错误,请检查您的安装并重试”,然后是“发生了 Java 异常”。关于如何解决这个问题有什么想法吗? package java; public cl
我是一名优秀的程序员,十分优秀!