釣魚術
swift
amplify
AWS
CocoaPods
如果不是五股聖母宮的師父教導,我大概還在打龜和 Try-and-error 呀
sudo gem install cocoapods
pod init
vim Podfile
Amplify
和 AmplifyPlugins/AWSCognitoAuthPlugin
(下圖 8 ~ 10 行)Podfile
# Uncomment the next line to define a global platform for your project
platform :ios, '16.0'
target 'BaoAnGongFisher' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for online member function
pod 'Amplify'
pod 'AmplifyPlugins/AWSCognitoAuthPlugin'
# Pods for BaoAnGongFisher
target 'BaoAnGongFisherTests' do
inherit! :search_paths
# Pods for testing
end
target 'BaoAnGongFisherUITests' do
# Pods for testing
end
end
pod install --repo-update
Amplify CLI
curl -sL https://aws-amplify.github.io/amplify-cli/install | bash && $SHELL
amplify configure
amplify pull
命令在中間 Edit backend
,可以直接使用這個指令拉下 amplify
repo
amplify pull --appId xxxxxx --envName dev --profile baoangong
BaoAnGongFisher
專案目錄下,呼叫指令:
amplify init
BaoAnGongFisherAmp
amplify push
圖:“路亞竿” 和 假餌“鉛筆” / 1.5 PE / 鈦刀 TL1000(2022.05.14 攝於 清水溪)
圖:這位仁兄的鯉魚竿很厲害...