我在osx 10.8.4下并且已经安装了gdb 7.5.1和homebrew(动机获得了一个新的gdb,其新功能如--with-python等...)
长话短说,我在c ++ Eclipse项目中运行调试得到:
Error in final launch sequence
Failed to execute MI command:
-exec-run
Error message from debugger back end:
Unable to find Mach task port for process-id 46234: (os/kern) failure (0x5).
(please check gdb is codesigned - see taskgated(8))
Unable to find Mach task port for process-id 46234: (os/kern) failure (0x5).
(please check gdb is codesigned - see taskgated(8))
Run Code Online (Sandbox Code Playgroud)
我已经遵循了代码签名的各种建议
所以我做了:
当我在Eclipse中重新运行调试时,我得到与上面相同的错误"(请检查gdb是codesigned - 参见taskgated(8))".
如果我将gdb设置回较旧的gdb(在Eclipse的gdb首选项中)/ …
我有一个用"sphinx-quickstart"创建的香草狮身人面像项目(Sphinx 1.2b3.)
我添加了一个带有4个标题级别的基本page.rst.
我可以在index.rst中控制html toc的深度:
.. toctree::
:maxdepth: 1
:numbered:
page
Run Code Online (Sandbox Code Playgroud)
根据文档http://sphinx-doc.org/latest/markup/toctree.html,我调整conf.py如下:
ADDITIONAL_PREAMBLE = """
\setcounter{tocdepth}{1}
"""
latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
'papersize': 'a4paper',
# The font size ('10pt', '11pt' or '12pt').
#'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
'preamble': '\setcounter{tocdepth}{1}'
#'preamble': ADDITIONAL_PREAMBLE
}
Run Code Online (Sandbox Code Playgroud)
然后我建立:
$ make clean
$ make html
$ make latexpdf
Run Code Online (Sandbox Code Playgroud)
html只显示了预期的1级,但pdf仍然显示2个toc级别 - 屏幕截图
:
任何提示?
谢谢
PELLE
由jacob提供 - >简单地认为所需级别为-1:
'preamble': '\setcounter{tocdepth}{0}'
Run Code Online (Sandbox Code Playgroud) 我是关于为iOS应用程序设置后台提取.
我做:
func application(
application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?
) -> Bool {
...
application.setMinimumBackgroundFetchInterval(
UIApplicationBackgroundFetchIntervalMinimum)
...
Run Code Online (Sandbox Code Playgroud)
如果我UIApplicationBackgroundFetchIntervalMinimum在调试器中检查和打印它说0- 实际值是多少?
我也尝试通过api查看,但没有运气https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/#//apple_ref/occ/instm/UIApplication/setMinimumBackgroundFetchInterval:
好吧,我必须分发一个iOS应用程序,并仔细阅读stackoverflow(特别是这篇文章)和苹果指南
我确实使用iOS开发人员和分发证书设置了Xcode 6.3.1 - 我的Xcode首选项如下所示:

我有一个真实的设备连接,可以Xcode > Product > Archive成功地执行哪些Archives:

完美的让我们去Xcode > Organizer > Archives上传应用程序:

但档案馆是空的:
No Archives在Xcode项目中使用Archive命令或从Xcode Server bot导入存档.
这很奇怪,因为Archive说它已经成功创建并且甚至存档了
/Users/<my user>/Library/Developer/Xcode/Archives/2015-05-20/MyApp 20-05-15 17.09.xcarchive
$ tree -L 1 <archive>
??? Products
? ??? Applications
??? dSYMs
??? BrightFutures.framework.dSYM
??? MyApp.app.dSYM
??? Typhoon.framework.dSYM
Run Code Online (Sandbox Code Playgroud)
OK让我们xcarchive直接打开文件 - 但是这会引发:
The archive could not be installed.
The archive may be corrupt or unreadable
Run Code Online (Sandbox Code Playgroud)
为什么?以及如何解决这个问题?
我得到了存档版本:
pods install再次运行(有一些关于cosigning错误的问题的讨论, …假设我有一个小程序,涉及从数据库中选择一个文档:
let errorDatabase
= NSError(domain: "dk.myproject.couchbase", code: 0, userInfo: nil)
let rev = database.existingDocumentWithID("_design/" + designDocName)
// in xcode I set a break point here
assert(rev != nil)
if rev == nil {
promise.failure(errorDatabase)
}
Run Code Online (Sandbox Code Playgroud)
然后我插入一个断点,运行程序,之后可以执行:
(lldb) po rev
0x00007fad21df61c0
{
ObjectiveC.NSObject = {...}
}
(lldb) print rev.properties["views"]
(AnyObject?) $R29 = Some {
...
Run Code Online (Sandbox Code Playgroud)
完美让我们进入repl和玩rev对象:
(lldb) repl
6> rev
repl.swift:6:1: error: use of unresolved identifier 'rev'
rev
^
Run Code Online (Sandbox Code Playgroud)
我可能对swift repl有错误的期望 - 我期待某种python,nodejs或scala repl.我可以玩物体等的行为
任何提示?
我有一个基于Android / Gradle的项目
AndroidManifest.xml 设置sdk:
...
<uses-sdk android:minSdkVersion="16"
android:targetSdkVersion="22"
android:compileSdkVersion="22"/>
...
Run Code Online (Sandbox Code Playgroud)
在Gradle配置中-build-extras.gradle我也设置了sdk-大致为:
...
android {
compileSdkVersion 22
buildToolsVersion '22.0.1'
defaultConfig {
applicationId 'com.example.myapp'
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName '1.0'
}
...
Run Code Online (Sandbox Code Playgroud)
使用Gradle构建项目时,我得到:
...
No resource identifier found for attribute 'compileSdkVersion' in package 'android'
...
Run Code Online (Sandbox Code Playgroud)
为什么呢
我得到了它的构建android:compileSdkVersion="22",AndroidManifest.xml但是经过大量的试验和错误,这真是幸运。所以我很想知道为什么?