我最近更新到OSX Sierra(来自El Capitan)和Xcode 9.我删除了所有兼容性问题(如自动布局问题),并且现在想要提交给我当地的gitrep.
出现以下错误:
我认为这可能是在这里提到的XCode 7中出现的同一个bug: Xcode和Git Source Control:"工作副本XXXXX无法提交文件"
但事实并非如此.我尝试了上面提到的解决方案.用户名和电子邮件已正确设置.我确实保存了一切,尝试重新启动机器和其他一些小事.什么都行不通 - 我无法承诺.
任何帮助赞赏.
编辑
我通过手动提交并在之前添加更改来实现它
git commit -a -m "Fixes"
Run Code Online (Sandbox Code Playgroud)
如果一旦我做了更多更改并在此报告,如果它再次发生,我将密切关注它.
我在Xcode 9.2,OSX,Objective-C上.
自OSX High Sierra Update以来,我收到了很多错误消息,如下所示:
AppleEvents: received mach msg which wasn't complex type as expected in getMemoryReference.
Run Code Online (Sandbox Code Playgroud)
我有两个XPC服务处理苹果事件,他们都报告了这个.有什么想法这是什么?我在Apple开发者论坛上发现了一个讨论,但它们不再是:https://forums.developer.apple.com/thread/88126
任何帮助或指针在正确的方向赞赏.
我使用的是 macOS Monterey (12.0.1),而不是 iOS、objective-c、XCode 13
在为 arm64 构建应用程序后,我收到此日志消息:
[general] *** -[NSKeyedUnarchiver validateAllowedClass:forKey:] allowed unarchiving safe plist type ''NSString' (0x1dcb1c848) [/System/Library/Frameworks/Foundation.framework]' for key 'NS.objects', even though it was not explicitly included in the client allowed classes set: '{(
"'NSDictionary' (0x1dcaee5d0) [/System/Library/Frameworks/CoreFoundation.framework]"
)}'. This will be disallowed in the future.
Run Code Online (Sandbox Code Playgroud)
知道是什么原因造成的以及如何消除它吗?
编辑:从 macOS Monterey 开始,在 arm64 上编译的每个应用程序似乎都会发生这种情况。所以这可能是一个普通的苹果错误
我在OSX中有一个poperly沙盒应用程序,objective-c通过apple事件(例如Adobe InDesign)与第三方应用程序对话.
在OSX mojave中,一切都中断,因为Apple的新SIP(https://developer.apple.com/library/archive/documentation/Security/Conceptual/System_Integrity_Protection_Guide/Introduction/Introduction.html)不允许进行通信.
我还没有找到任何解决方案.任何帮助赞赏.
这是错误消息
__PRE__
这是对问题的一个非常好的总结:https: //www.felix-schwarz.org/blog/2018/06/apple-event-sandboxing-in-macos-mojave
我在OSX(不是iOS),Xcode 8.2,Objective-C上
我有两个带有约束的按钮。两个按钮的标题居中,并且宽度相同(通过约束)。否,当涉及另一种语言时,按钮会变宽以适合较长的文本。但是我想在按钮的边框和文本之间留一些空间。IB中的标题插入选项对于NSButton不存在,我没有找到任何等效的解决方案。
任何帮助表示赞赏
底部按钮的约束:(“ New project”是顶部按钮)
我使用的是 XCode 9、OSX,而不是 iOS、Objective-C。
我有一个 XPC 服务可以与其他应用程序通信。XPC 服务对我来说是全新的。我已经阅读了我找到的文档和文章 - 但我仍然需要一些帮助。
// NSXPC Connection stored as ivar
self.bridgeagent = [[NSXPCConnection alloc] initWithServiceName:@"com.myid.myapp.bridgeagent"];
self.bridgeagent.remoteObjectInterface = [NSXPCInterface interfaceWithProtocol:@protocol(bridgeagentProtocol)];
self.bridgeagent.exportedInterface = [NSXPCInterface interfaceWithProtocol:@protocol(bridgeagentProxyProtocol)];
self.bridgeagent.exportedObject = self;
[self.bridgeagent setInvalidationHandler:^{
NSLog(@"Bridgeagent invalidation handler!");
}];
[self.bridgeagent setInterruptionHandler:^{
NSLog(@"Bridgeagent interruption handler!");
}];
[self.bridgeagent resume];
Run Code Online (Sandbox Code Playgroud)
该服务的调用方式如下:
// openFile method is listed in corresponding protocol
[[self.bridgeagent remoteObjectProxyWithErrorHandler:^(NSError * _Nonnull error) {
NSLog(@"bridgeagent.openFile errorHandler: %@",error);
}] openFile:parameters withReply:^(NSDictionary *returnParameters) { // do something with result }];
Run Code Online (Sandbox Code Playgroud)
呼叫成功,服务完成其工作。然而,既然该服务可以正常工作,我想深入研究使其更加稳定(即使我现在没有遇到任何问题)。
有人可以向我解释一下吗
objective-c ×4
macos ×3
appleevents ×2
xcode9 ×2
apple-m1 ×1
arm ×1
autolayout ×1
git ×1
git-commit ×1
macos-mojave ×1
nsbutton ×1
security ×1
xcode8 ×1