我有一个奇怪的问题.Codeign拒绝签署我拥有的这个大项目,项目A,但确实签署了另一个,项目B.但是,当我签署项目B时,它也可以突然签署项目A. 我百分百肯定我没有改变任何其他东西.我采取的步骤是:
尝试构建,签署A - 签署失败
尝试构建,签署B - 成功
尝试构建,签署A - 成功
成绩单:
CodeSign build/Debug-iphoneos/CPPlayer.app cd /Users/nick/CPPlayer setenv CODESIGN_ALLOCATE /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /usr/bin/codesign -f -s "iPhone Developer: Nick Overdijk (PM7C8QKTYS)" --resource-rules=/Users/nick/CPPlayer/build/Debug-iphoneos/CPPlayer.app/ResourceRules.plist --entitlements /Users/nick/CPPlayer/build/CPPlayer.build/Debug-iphoneos/CPPlayer.build/CPPlayer.xcent /Users/nick/CPPlayer/build/Debug-iphoneos/CPPlayer.app /Users/nick/CPPlayer/build/Debug-iphoneos/CPPlayer.app: object file format invalid or unsuitable Command /usr/bin/codesign failed with exit code 1
有什么我可以错过的吗?任何想法如何发生这种情况?我现在一切都工作了,这似乎解决了我的问题,但我想了解发生了什么.
有时它也是这样的:
构建/签署A - 成功
构建/签署A - 失败
构建/签署B - 成功(B似乎总是成功)
构建/签署A - 成功
构建/签署A - 失败
因此,在每次成功构建A之后,我必须构建并签署B以便能够再次签署项目A. 我可以连续多次重建项目B,它总是成功的.
我不确定它是否重要,但是当我尝试在模拟器中运行它(iPhone OS 3.1.2的调试模式)时,它无法相互安装.所以:
构建/运行 - 失败
构建/运行 - 工作
构建/运行 …
我在我的cmake文件中有这个
get_target_property(moggle_interface_includes moggle INTERFACE_INCLUDE_DIRECTORIES)
message("Moggle interface includes: ${moggle_interface_includes}")
target_link_libraries(motor
moggle
)
get_target_property(motor_includes motor INCLUDE_DIRECTORIES)
message("MOTOR includes ${motor_includes}")
Run Code Online (Sandbox Code Playgroud)
哪个输出这个
Moggle interface includes: "/home/nick/code/onegame/motor/moggle/include"
Motor includes:" "
Run Code Online (Sandbox Code Playgroud)
怎么会这样?当moggle被链接时,它也应该,根据这个
CMake will also propagate "usage requirements" from linked library targets. Usage
requirements affect compilation of sources in the <target>. They are specified by
properties defined on linked targets. During generation of the build system, CMake
integrates usage requirement property values with the corresponding build properties for
<target>:
INTERFACE_COMPILE_DEFINITONS: Appends to COMPILE_DEFINITONS
INTERFACE_INCLUDE_DIRECTORIES: Appends to …Run Code Online (Sandbox Code Playgroud) 我用POST请求一些东西,服务器只发送内容长度为0的状态码200.我怎么处理这个?我不允许在没有映射的情况下添加RKResponseDescriptor,也不允许添加RKResponseDescriptor.
我有以下代码,我没有得到我预期的结果.
#import "CancelPerformSelectorTestAppDelegate.h"
@implementation CancelPerformSelectorTestAppDelegate
@synthesize window;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[window makeKeyAndVisible];
for(unsigned int i = 0; i < 10; i++){
NSTimeInterval waitThisLong = i;
[self performSelector:@selector(foo) withObject:nil afterDelay: waitThisLong];
}
[[NSRunLoop currentRunLoop] cancelPerformSelectorsWithTarget: self];
return YES;
}
- (void) foo {
static unsigned int timesCalled = 0;
++timesCalled;
NSLog(@"%s: I am called for the %d-st/nd/th time", __func__, timesCalled);
}
- (void)applicationWillResignActive:(UIApplication *)application {}
- (void)applicationDidBecomeActive:(UIApplication *)application {}
- (void)applicationWillTerminate:(UIApplication *)application {}
- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application {}
- …Run Code Online (Sandbox Code Playgroud) ios ×2
cmake ×1
codesign ×1
iphone ×1
nsrunloop ×1
null ×1
objective-c ×1
restkit ×1
restkit-0.20 ×1
xcode ×1