doorxp-blog

doorxp.com

iOS AppIcon Shell

sips -g all 源文件路径有文件满足下面的条件    pixelWidth: 1024  pixelHeight: 1024  typeIdentifier: public.png  format: png  formatOptions: default  dpiWidth: 72.000  dpiHeight: 72.000  samplesPer

Swift中使用构建配置来支持条件编译

在Objective-C中,我们经常使用预处理指令来帮助我们根据不同的平台执行不同的代码,以让我们的代码支持不同的平台,如:12345#if TARGET_OS_IPHONE    #define MAS_VIEW UIView             #elif TARGET_OS_MA

alfred 每次开机运行后都提示是否允许访问通讯录

打开 Alfred Preferences -> Features -> Contacts,取消勾选 Open Contacts in Alfred。 或者系统偏好设置 -> 安全性与隐私 -> 隐私 -> 通讯录,勾上 Alfred.app,允许 Alfred 访问通讯录在使用破解版的时候,每次开机都要提示这个信息,实在是很烦.最终找到解决办法:在终端输入如下命令,完美解决^_^!sudo codesign -f -d -s - /Application

内存修改

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58//extern "C"&n

Using enum classes as type-safe bitmasks

IntroIn C++, bitmasks are often represented by eitherpreprocessor defines#define Readable   0x4 #define Writeable  0x2 #define Executable 0x1 unsigned permissions = Readable | E

Keypath for any element in embedded NSArray

@interface NSArray (SubscriptKey) @end @implementation NSArray (SubscriptKey) - (id)valueForUndefinedKey:(NSString *)key {     if ([key isEqualToString:@"size"]) { &

Assembler Directives

This chapter describes assembler directives (also known as pseudo operations, or pseudo-ops), which allow control over the actions of the assembler.Directives for Designating the Current SectionThe assembler supports designation of arbitrar

读取数据(嵌入的plist)链接通过-sectcreate __TEXT为可执行

我用连接使用的plist一个可执行-sectcreate __TEXT连接器选项。clang -Wl,-sectcreate,__TEXT,__info_plist,info.plist -dynamiclib -o a.dylib a.cppotool你可以用otool(1)转储包含嵌入的plist的部分内容:otool -s __TEXT __info_plist /path/to/executable 然后通过管道将其输出,以便获得相应的ASCII表示XXD(1):otool -

include/mach-o/dyld-interposing.h

/*  * Copyright (c) 2005-2008 Apple Computer, Inc. All rights reserved.  *  * @APPLE_LICENSE_HEADER_START@  *   * This file contains Original&nbs

shared library is loaded auto run

It's run when a shared library is loaded, typically during program startup.1. before mainvoid tmain() __attribute__((constructor(101))){     printf("abc\n"); }2.module inittypedef  void (IN

Powered By Z-BlogPHP 1.5.1 Zero

Copyright doorxp.com Rights Reserved.