解決方式:
1. 打開Key Chan在 登入 跟 系統 裡面 把 The Apple Worldwide Developer Relations Certification Intermediate Certificate刪除
2. https://developer.apple.com/certificationauthority/AppleWWDRCA.cer 下載後,點兩下安裝
3. Finish.
2016年3月7日 星期一
Xcode 7 上架時遇到 unexpected cfbundleexecutable key ... googleplus.bundle ... 錯誤
解決方式:
在找出你import的googleplus.bundle
1. googleplus.bundle/Info.plist
2. googleplus.bundle/GPPCommonSharedResources.bundle/Info.plist
3. googleplus.bundle/GPPShareboxSharedResources.bundle/Info.plist
請將這三個檔案的Executable file -> string 的值 清除
在找出你import的googleplus.bundle
1. googleplus.bundle/Info.plist
2. googleplus.bundle/GPPCommonSharedResources.bundle/Info.plist
3. googleplus.bundle/GPPShareboxSharedResources.bundle/Info.plist
請將這三個檔案的Executable file -> string 的值 清除
2016年1月4日 星期一
Ubuntu OpenSSL 更新或安裝
一、確認OpenSSL版本
二、下載你要更新的版本
OpenSSL 下載連結
三、安裝
後來在確認是否有更新版本
# openssl version
二、下載你要更新的版本
OpenSSL 下載連結
# wget https://openssl.org/source/openssl-1.0.2d.tar.gz # tar -zxvf openssl-1.0.2d.tar.gz -C /usr/local/src
三、安裝
# cd /usr/local/src/openssl-1.0.2d # ./config # make # make install安裝完後,請移動資料夾
# mv /usr/bin/openssl /root/ # ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
後來在確認是否有更新版本
# openssl version
Xcode 7 使用google+ SDK遇到錯誤
GoogleOpenSource.framework/GoogleOpenSource(GTLDateTime.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
我們只要進入 Build Settings -> Build Options 將 Enable Bitcode 改成NO
我們只要進入 Build Settings -> Build Options 將 Enable Bitcode 改成NO
2015年12月18日 星期五
Swift 2 Xcode7.1 Facebook SDK + 自訂Facebook Button
一、下載Facebook SDK
二、Xcode開新專案
編輯專案下的info.plist
新增以下設定
Facebook developer key 記得先去申請 Facebook Developer
三、將.framework檔放入
先new Group,名稱為Frameworks
在將FBSDKCoreKit.framework,FBSDKLoginKit.framework,FBSDKShareKit.framework放入Frameworks裡
四、寫程式
1.AppDelegate.swift
打完收功...
二、Xcode開新專案
編輯專案下的info.plist
新增以下設定
Facebook developer key 記得先去申請 Facebook Developer
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fb{your-app-id}</string>
</array>
</dict>
</array>
<key>FacebookAppID</key>
<string>{your-app-id}</string>
<key>FacebookDisplayName</key>
<string>{your-app-name}</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>facebook.com</key>
<dict>
<key>NSIncludesSubdomains</key> <true/>
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key> <false/>
</dict>
<key>fbcdn.net</key>
<dict>
<key>NSIncludesSubdomains</key> <true/>
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key> <false/>
</dict>
<key>akamaihd.net</key>
<dict>
<key>NSIncludesSubdomains</key> <true/>
<key>NSThirdPartyExceptionRequiresForwardSecrecy</key> <false/>
</dict>
</dict>
</dict>
三、將.framework檔放入
先new Group,名稱為Frameworks
在將FBSDKCoreKit.framework,FBSDKLoginKit.framework,FBSDKShareKit.framework放入Frameworks裡
四、寫程式
1.AppDelegate.swift
import UIKit
import CoreData
import FBSDKCoreKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication,
openURL url: NSURL,
sourceApplication: String?,
annotation: AnyObject) -> Bool {
return FBSDKApplicationDelegate.sharedInstance().application(
application,
openURL: url,
sourceApplication: sourceApplication,
annotation: annotation)
}
.....
}
2.ViewController.swift
import UIKit
import FBSDKCoreKit
import FBSDKShareKit
import FBSDKLoginKit
class ViewController: UIViewController {
let fbLoginManager : FBSDKLoginManager = FBSDKLoginManager()
override func viewDidLoad() {
super.viewDidLoad()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
@IBAction func loginAction(sender: AnyObject) {
fbLoginManager.logInWithReadPermissions(["email"],fromViewController: self.parentViewController, handler: { (result, error) -> Void in
if (error == nil){
let fbloginresult : FBSDKLoginManagerLoginResult = result
if(fbloginresult.grantedPermissions.contains("email"))
{
self.getFBUserData()
self.fbLoginManager.logOut()
}
}
})
}
func getFBUserData(){
if((FBSDKAccessToken.currentAccessToken()) != nil){
FBSDKGraphRequest(graphPath: "me", parameters: ["fields": "id, name, first_name, last_name, picture.type(large), email"]).startWithCompletionHandler({ (connection, result, error) -> Void in
if (error == nil){
print(result)
}
})
}
}
@IBAction func logoutAction(sender: AnyObject) {
fbLoginManager.logOut()
}
}
打完收功...
2015年12月17日 星期四
Swift 2 Xcode7.1 Google Map SDK example
前提:
來抱怨一下,相信大家也是這樣,只要Xcode版本一大改,很多套件都需要更新
以前我是用下載他的sdk裡面的framework檔放進去,但是現在用cocoapods來處理
本篇是用Swift2.0所開發,Object-C的話... 我不會
一、開始Terminal
安裝cocoapods
二、開新專案
開新增案後,在將專案關閉
專案名稱:TestMap
到專案目錄下,新增Podfile檔
以下是內容,編輯完後儲存
在用Terminal cd到專案目錄
在用Terminal,執行以下的指令
四、取得Google Developer Console Key
點此連結申請
五、最後寫程式
請打開TestMap.xcworkspace
1.AppDelegate.swift
2.ViewController.swift
3.Run... Finish
參考鏈結:
https://developers.google.com/maps/documentation/ios-sdk/start/
https://www.youtube.com/watch?v=q6tg3gl7CsU
來抱怨一下,相信大家也是這樣,只要Xcode版本一大改,很多套件都需要更新
以前我是用下載他的sdk裡面的framework檔放進去,但是現在用cocoapods來處理
本篇是用Swift2.0所開發,Object-C的話... 我不會
一、開始Terminal
安裝cocoapods
sudo gem install cocoapods
二、開新專案
開新增案後,在將專案關閉
專案名稱:TestMap
到專案目錄下,新增Podfile檔
以下是內容,編輯完後儲存
source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.1' pod 'GoogleMaps'
在用Terminal cd到專案目錄
cd ........./TestMap
在用Terminal,執行以下的指令
pod install
四、取得Google Developer Console Key
點此連結申請
五、最後寫程式
請打開TestMap.xcworkspace
1.AppDelegate.swift
...
import GoogleMaps
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
GMSServices.provideAPIKey("key")
return true
}
...
}
2.ViewController.swift
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let camera = GMSCameraPosition.cameraWithLatitude(-33.86,
longitude: 151.20, zoom: 6)
let mapView = GMSMapView.mapWithFrame(CGRectZero, camera: camera)
mapView.myLocationEnabled = true
self.view = mapView
let marker = GMSMarker()
marker.position = CLLocationCoordinate2DMake(-33.86, 151.20)
marker.title = "Sydney"
marker.snippet = "Australia"
marker.map = mapView
}
}
3.Run... Finish
參考鏈結:
https://developers.google.com/maps/documentation/ios-sdk/start/
https://www.youtube.com/watch?v=q6tg3gl7CsU
2015年2月18日 星期三
How to install iRedMail 9.0 on ubunt14.10 and receive email.
軟體準備
一、安裝前的準備
二、iRedMail安裝及設定
這邊只有顯示你主機名稱,請在加上你的domain name,不然不能裝iRedMail
以下是修改hosts,紅線的地方加上你要設定的domain name:
下載iRedMain 9.0及安裝:
設定LDAP密碼:
設定MySQL密碼:
設定Virtual domain name:
設定admin密碼:
一、https://ip/mail/
二、https://ip/iredadmin
用postmaster@city-get.com登入,密碼在你安裝時所設定的。
忘記密碼請下以下的指令就可以查詢到。
這時測試,會發生一個問題你會遇到可以寄信,但不能收信
請設定以下的設定。
備註:我這邊有遇到漏信的問題,是當我server重開時,server剛啟動時,這時收信都收不到,所以這邊請耐心等10~20分(大概還有東西在啟動)。
參考鏈結:
http://www.unixmen.com/setup-mail-server-in-minutes-using-iredmail-in-ubuntu-12-10-debian-6/
http://lordcail.blogspot.tw/2013/10/solved-iredmailroundcube-cant-receive.html
一、安裝前的準備
sudo apt-get update
二、iRedMail安裝及設定
hostname -f
這邊只有顯示你主機名稱,請在加上你的domain name,不然不能裝iRedMail
以下是修改hosts,紅線的地方加上你要設定的domain name:
sudo vim /etc/hosts
hostname -f
下載iRedMain 9.0及安裝:
sudo wget https://bitbucket.org/zhb/iredmail/downloads/iRedMail-0.9.0.tar.bz2
sudo tar jxvf iRedMail-0.9.0.tar.bz2
cd iRedMail-0.9.0
sudo bash iRedMail.sh以下的設定依照紅色的部分做設定:
這邊我對apache比較熟所以我選擇apache:
設定LDAP密碼:
設定MySQL密碼:
設定Virtual domain name:
設定admin密碼:
sudo reboot有兩個網址
一、https://ip/mail/
二、https://ip/iredadmin
用postmaster@city-get.com登入,密碼在你安裝時所設定的。
忘記密碼請下以下的指令就可以查詢到。
more iRedMail-0.9.0/iRedMail.tips請自行把DNS 記錄管理與設定好,以下是我台灣固網的設定方式。
這時測試,會發生一個問題你會遇到可以寄信,但不能收信
請設定以下的設定。
sudo vim /etc/cluebringer/cluebringer.conf內容如下,將enable=1改0,修改完後儲存:
... # Greylisting module [Greylisting] enable=0 ...
sudo /etc/init.d/postfix-cluebringer restart
備註:我這邊有遇到漏信的問題,是當我server重開時,server剛啟動時,這時收信都收不到,所以這邊請耐心等10~20分(大概還有東西在啟動)。
參考鏈結:
http://www.unixmen.com/setup-mail-server-in-minutes-using-iredmail-in-ubuntu-12-10-debian-6/
http://lordcail.blogspot.tw/2013/10/solved-iredmailroundcube-cant-receive.html
訂閱:
文章 (Atom)
















