Menu Home

xcode

XCode: Use HTTP

XCode 7.0.1 ERROR: App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app’s Info.plist file. You can find this Note at Here. App Transport Security App Transport Security (ATS) enforces best practices in the secure connections between […]

Xcode6: 找回”Empty Application”模版

Xcode6取消了 “Empty Application”的模版,但是有时候我们还是有创建”Empty Application”的需求,可以按如下步骤来实现: 删除ViewController.h和ViewController.m文件 删除Main.storyboard 删除LaunchScreen.xib 经过以上步骤后,你会发现编译失败,因为找不到Main.storyboard,我们还需要修改一下info.plist中的配置: 删除Main storyboard file base name 后再次编译,这次可以成功运行,但是屏幕显示的是黑屏。 打开AppDelegate.m修改application:didFinishLaunchingWithOptions:方法: – (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. self.window = [[UIWindow alloc]initWithFrame:[[UIScreen mainScreen]bounds]]; self.window.backgroundColor = [UIColor whiteColor]; [self.window makeKeyAndVisible]; return YES; }

Xcode 5.1编译android源码错误

升级Xcode后,在编译android 4.4.2是出现如下错误: SyntaxError: Unable to find any JNI methods for org/chromium/ui/gfx/BitmapHelper. 解决方法有两个: 回退xcode版本 修改文件external/base/android/jni_generator/jni_generator.py : +import platform -p = subprocess.Popen(args=[‘cpp’, ‘-fpreprocessed’], +system = platform.system() +if system == ‘Darwin’: + cpp_args = [‘cpp’] +else: + cpp_args = [‘cpp’, ‘-fpreprocessed’] +p = subprocess.Popen(args=cpp_args, + stdin=subprocess.PIPE, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE)