Ro.bber

Road endless its long and far, I will seek up and down.


  • 首页

  • 标签

  • 归档

  • 分类

  • 关于

  • 搜索

This app was unable to be installed.

发表于 2017-10-28 | 分类于 iOS
| 字数统计 186

今天升级XCode 9.1 beta,编译项目正常,模拟器运行出现以下错误弹框:

UnableInstalled

阅读全文 »

High Sierra bad interpreter

发表于 2017-10-28 | 分类于 iOS
| 字数统计 54

升级到mac OS High Sierra之后,pod失败,错误如下:

-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory

解决方案:

1
2
sudo gem update --system
sudo gem install -n /usr/local/bin cocoapods

iOS build error framework not found FileProvider for architecture x86_64

发表于 2017-10-28 | 分类于 iOS
| 字数统计 57

最近升级mac OS 到 High Sierra之后 XCode并没有立马升级,还是xcode 8.x,编译的时候,出现这样的问题:

iOS build error: framework not found FileProvider for architecture x86_64

解决办法:update XCode to 9.x即可

The document could not be autosaved. The file doesn’t exist.

发表于 2017-09-24 | 分类于 iOS
| 字数统计 209

有时候莫名其妙的pod update之后(可能是拖拽文件到pod子项目导致的,具体忘了,出现问题的时候已经忘了之前干啥了。。。囧~),然后某一个或者几个文件就不能编辑保存了,编译不过,如下:

The document could not be autosaved. The file doesn’t exist.

fileNotExist

阅读全文 »

resource fork, Finder information, or similar detritus not allowed

发表于 2017-09-24 | 分类于 mac
| 字数统计 288

XCode 8之后,上传AppStore可能会出现下面的错误:

CodeSignError.png

阅读全文 »

Compile warning:Embedded binary's NSExtensionActivationRule is TRUEPREDICATE

发表于 2017-09-24 | 分类于 mac
| 字数统计 136

上传AppStore的时候出现如下BUG:

warning: Embedded binary’s NSExtensionActivationRule is TRUEPREDICATE. Before you submit your containing app to the App Store, be sure to replace all uses of TRUEPREDICATE with specific predicate statements or NSExtensionActivationRule keys. If any extensions in your containing app include TRUEPREDICATE, the app will be rejected.

阅读全文 »

mac中NSScrollView自定义滑动条NSScroller

发表于 2017-09-24 | 分类于 mac
| 字数统计 487

最近在捣鼓mac上开发app,本以为iOS、mac开发本是同根生,弄起来应该差不多,上手之后才发现iOS是多么的优雅自在,而mac是干啥都觉得不太顺手,UIKit跟AppKit差别还真是不一般的大。

最近,感觉NSScrollView右侧的滑动条长得不好看,想把滑动条的背景去掉,本想着设置个某个属性就能轻而易举的搞定,谁不知捣鼓半天没弄出来,mac开发的相关资料也着实太少,在这里记一笔,加深一下印象。

阅读全文 »

mac中NSScrollView滑动监测

发表于 2017-09-24 | 分类于 mac
| 字数统计 306

不同于iOS中的UIScrollView,mac中的NSScrollView并没有一堆靠谱好用的delegate来帮助我们方便的监控ScrollView的状态。

iOS中我们可以通过UIScrollView的contentOffset属性来获知滑动的位置,而在mac中我们是通过NSScrollView的contentView(NSClipView的实例)的documentVisibleRect.origin来获知滑动的相对位置。

阅读全文 »

xcode快捷键你知多少?

发表于 2017-07-30 | 分类于 iOS
| 字数统计 930

常言道,工欲善其事必先利其器。

了解xcode常用快捷键在coding中的使用,很容易摆脱鼠标的拖累,大大提高coding的效率。

快速搜索跳转文件

快捷键:cmd + shift + o

这个快捷键的使用频率非常高,是摆脱鼠标的一大利器。

注意:o是表示惊讶的哦..😯,不是考试得到的零蛋0,o == open。

阅读全文 »

Swift闭包--简不简洁?!优不优雅?!

发表于 2017-07-22 | 分类于 swift
| 字数统计 2.1k

闭包(Closures)

闭包是自包含的函数代码块,可以在代码中被传递和使用。

Closures are self-contained blocks of functionality that can be passed around and used in your code.
–摘自官方文档

相信大家都熟悉C 和 Objective-C 中的代码块(blocks)或者其他一些编程语言中的匿名函数,Swift中的闭包与之相类似。

阅读全文 »
12345
Ro.bber

Ro.bber

路漫漫其修远兮,吾将上下而求索。
Road endless its long and far,
I will seek up and down.

42 文章
4 分类
59 标签
RSS
GitHub 简书
© 2017 - 2018 Ro.bber Ro.bber's Blog 全站共35.6k字
本站访客数 人 本站总访问量 人次