You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use the PersistentStorageSerializable framework with Xcode 9 and Swift 4.0 projects.
Via Carthage
Use as before - no changes needed.
Via Cocoapods
Add following script to the end of your project's Podfile.
# Manually making chosen pods swift version to be 3.2
post_install do |installer|
swift32pods = ['PersistentStorageSerializable']
installer.pods_project.targets.each do |target|
if swift32pods.include? target.name
print "Changing #{target.name} pod swift version to 3.2\n"
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.2'
end
end
end
end
Thank you for feedback, I add the framework to my project when swift 3, after I update Xcode to 9.0, Xcode9 told me that /.../Serial Port/SerialPortConfigs.swift:11:8: Module file's minimum deployment target is OS X v10.11: /.../Library/PersistentStorageSerializable/PersistentStorageSerializable.framework/Modules/PersistentStorageSerializable.swiftmodule/x86_64.swiftmodule
I try to modify your project setting to meet swift 4's requirement, but an issue occur, shows as photo below.
Yes, this issue is known. I'm thinking what can be done.
Meanwhile, please, stick to Carthage or Cocapods solution mentioned earlier or change the SWIFT_VERSION build setting to 3.2 for the framework target.
Activity
IvanRublev commentedon Sep 23, 2017
IvanRublev commentedon Sep 26, 2017
You can use the
PersistentStorageSerializableframework with Xcode 9 and Swift 4.0 projects.Via Carthage
Use as before - no changes needed.
Via Cocoapods
Add following script to the end of your project's Podfile.
ArthurXu424 commentedon Sep 26, 2017
Thank you for feedback, I add the framework to my project when swift 3, after I update Xcode to 9.0, Xcode9 told me that
/.../Serial Port/SerialPortConfigs.swift:11:8: Module file's minimum deployment target is OS X v10.11: /.../Library/PersistentStorageSerializable/PersistentStorageSerializable.framework/Modules/PersistentStorageSerializable.swiftmodule/x86_64.swiftmoduleI try to modify your project setting to meet swift 4's requirement, but an issue occur, shows as photo below.
IvanRublev commentedon Sep 26, 2017
Yes, this issue is known. I'm thinking what can be done.
Meanwhile, please, stick to Carthage or Cocapods solution mentioned earlier or change the SWIFT_VERSION build setting to 3.2 for the framework target.