Category Archives: iOS development

iOS development relative

Interface Builder high CPU usage hang Mac OS X

The MacBook Pro almost hang the other day, press a key or click some function then the cursor turned into spinning rainbow. Check the cpu usage in terminal console and find that “Interface Builder” was the highest cpu usage process. … Continue reading

Posted in iOS development, Misc | Leave a comment

2017/12 iPhone X/iOS 11 改版記錄

每次 Apple 出新機或是新版 iOS 我就頭痛 幾乎所有的app都得要拿出來renew一遍 再加上Google Admob沒事就改版 這個月光是把一些還活著的app Refresh一下就飽了 以下是 Refresh App 過程中碰到的問題及解決方法 記錄下來以免以後又重覆碰到 1.git – Commit Failed – cannot communicate to the command line helper 在 Project 目錄(有 .git 檔案那層)下指令 git commit -a -m “commit message” 2.iTunes Connect … Continue reading

Posted in iOS development, Misc | Leave a comment

XCode from SVN to Git (BitBucket), Step by Step

1.(Terminal) git svn clone http://svn.domain.com/svnroot/ 2.(BitBucket) Create repository, get repository url 3.(XCode) Open project (cloned in step 1) 4.(XCode) Add Existing Remote The Location was the URL you got in step 2 (on top right corner) 5.(XCode) Source Control -> … Continue reading

Posted in iOS development | Leave a comment

iOS – Click view to dismiss the keyboard

    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self.view action:@selector(endEditing:)];     tap.cancelsTouchesInView = FALSE;     tap.delegate = self;     [self.view addGestureRecognizer:tap];

Posted in iOS development | Leave a comment

An App ID with Identifier is not available. Please enter a different string

invalid app id 在 adhoc build 時出現 Invalid app id 的錯誤訊息 奇怪的是很久之前可以,現在卻不行 解決方法是 將原來「由Xcode代為產生的 adhoc provision profile」全部刪掉 自己重新設定「adhoc provision profile」即可 app id 與原來的相同

Posted in iOS development | Tagged , , | Leave a comment

終於 – iTunes Connect 改善了

以前上架 iOS app 時 都要上傳各尺寸的螢幕截圖 3.5″ 4″ 4.7″ 5.5.” 四種大小 如果每個 5 張,就得要 5×4=20 張 今天上架時 發現只要上傳最大的解析度即可 5.5″ (1242×2208) 其他較小的尺寸預設就會自動套用 (當然,如果要自己上傳各尺寸也是可以) 真是 iOS Developer 的一大福音…

Posted in iOS development | Leave a comment

Facebook Signin Practice Log

Facebook signin ios Follow the official document procedure https://developers.facebook.com/docs/facebook-login/ios 1.Download SDK and setup the environment https://developers.facebook.com/docs/ios/getting-started Create new Facebook app 2.Configure the XCode project parameters Info.plist For AppTransportSecurity parameters, you can follow the Facebook direction, or you can just “allow … Continue reading

Posted in iOS development | Leave a comment

Google SignIn iOS practice log

Google Sign-in for iOS 1.Download GoogleSignIn SDK https://developers.google.com/identity/sign-in/ios/sdk/ There are two ways to get the SDK, CocoaPod or direct download, Personally I preferred the download way. Follow the official document procedure https://developers.google.com/identity/sign-in/ios/start 2.Get configuration file https://developers.google.com/mobile/add?platform=ios&cntapi=signin&cntapp=Default%20Demo%20App&cntpkg=com.google.samples.quickstart.SignInExample&cnturl=https:%2F%2Fdevelopers.google.com%2Fidentity%2Fsign-in%2Fios%2Fstart%3Fconfigured%3Dtrue&cntlbl=Continue%20with%20Try%20Sign-In   3.Copy to project … Continue reading

Posted in iOS development | Leave a comment

How to fix – There was an internal API error

There was an internal API error XCode build app 至 iPhone 時出現此錯誤 解決方法: Target->Build Setting->Product Name Remove any “weird” characters and keep there only English characters.

Posted in iOS development | 4 Comments

Unable to create description in descriptionForLayoutAttribute_layoutItem_coefficient. Something is nil

Unable to create description in descriptionForLayoutAttribute_layoutItem_coefficient. Something is nil   Symptom: Normal but crash in iOS 7 device. Possible reason : Use some “Baseline” constraints (Only supported after iOS 8) in storyboard. Solution : Remove any “Baseline” constraints of that … Continue reading

Posted in iOS development | Leave a comment