Upgrade Xcode 8 to Xcode 9, you need to upgarde SQLCipher as well. Xcode 8 升級 Xcode 9 你的SQLCipher也要更新。
1. You may need to download this "iTerm" App in your MAC-mini. Because the terminal(Mac 10.12) doesn't work !!!
Link: https://www.iterm2.com/
2. Delete these three file in your project.

3. Open the "iTem" App or "Terminal" (if your terminal is work).
And move to your project path, just like photo.

4. Remove the last component "APP Name" , and then press enter.
And enter "pod init" to create pod in your folder.

5. Now you can see these three new file in your project!

6. Open the "Podfile" file, and replace below words in file.
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'APP Name' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for APP Name
pod ‘FMDB/SQLCipher’
end
post_install do | installer |
print "SQLCipher: link Pods/Headers/sqlite3.h"
system "mkdir -p Pods/Headers/Private && ln -s ../../SQLCipher/sqlite3.h Pods/Headers/Private"
end
7. Change setting in the project.
Remove all flags
-other c flags
-other linker flags
-header search path

8. Back to "iTerm" Apps, enter "pod install" and run.

9. Build apps, Finished.
Link: https://www.iterm2.com/
2. Delete these three file in your project.

3. Open the "iTem" App or "Terminal" (if your terminal is work).
And move to your project path, just like photo.

4. Remove the last component "APP Name" , and then press enter.
And enter "pod init" to create pod in your folder.
5. Now you can see these three new file in your project!

6. Open the "Podfile" file, and replace below words in file.
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'APP Name' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for APP Name
pod ‘FMDB/SQLCipher’
end
post_install do | installer |
print "SQLCipher: link Pods/Headers/sqlite3.h"
system "mkdir -p Pods/Headers/Private && ln -s ../../SQLCipher/sqlite3.h Pods/Headers/Private"
end
7. Change setting in the project.
Remove all flags
-other c flags
-other linker flags
-header search path

8. Back to "iTerm" Apps, enter "pod install" and run.
9. Build apps, Finished.
留言
張貼留言