Comments (12)
@RudyB Swift 4 support is now available in v1.1.0 release! 🎉
from spartan.
Hi @RudyB! 😄 AlamofireObjectMapper doesn't yet have a swift 4 release that can be used by pods who use AlamofireObjectMapper as a dependency. You can follow this issue as I have let the author know that a swift 4 release would be greatly appreciated. In the meantime, you can still use Spartan within a Swift 4 project as Swift 3.x and Swift 4 are completely compatible with each other. Just include this at the bottom of your podfile:
post_install do |installer|
installer.pods_project.targets.each do |target|
swift3_projects = ['Spartan', 'AlamofireObjectMapper', 'Alamofire']
if swift3_projects.include? target.name
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.2'
end
end
end
end
from spartan.
@Daltron I saw that you were pretty active on their issue board. I am also patiently awaiting a swift 4 release from them.
I added that code to the bottom of my pod file and I am still getting the Object Mapper Build Issues regarding the toIntMax
Did I do something dumb?
A copy of my pod file:
target 'Tempo' do
use_frameworks!
platform :ios, '10.3'
# Pods for Tempo
pod 'SpotifyLogin'
pod 'Spartan'
target 'TempoTests' do
inherit! :search_paths
# Pods for testing
end
target 'TempoUITests' do
inherit! :search_paths
# Pods for testing
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
swift3_projects = ['Spartan']
if swift3_projects.include? target.name
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.2'
end
end
end
end
from spartan.
@RudyB Did you rerun the pod install
command? I forgot to mention that that is needed in order for the changes to take affect! 😄
from spartan.
I absolutely did. I also cleaned my project and build folder.
from spartan.
@RudyB Can you take a screenshot of the errors Xcode is reporting please?
from spartan.
Pod Install Output
Xcode Output
Thank you for helping me with this one
from spartan.
@RudyB Ahhh I'm sorry, you need to also specify 'AlamofireObjectMapper' and 'Alamofire' in the swift3_projects
variable. I've updated my original comment to include these two pods.
from spartan.
I had to explicitly add ObjectMapper
to the swift3_projects
variable as well in order to get it to work. Thank you so much for all the help. You may want to add that to your code snippet
from spartan.
Glad to hear! 🎉
from spartan.
AlamofireObjectMapper 4.1.0 was released today FYI
from spartan.
@Daltron Thank you for your hard work.
Have a beer on me.
from spartan.
Related Issues (20)
- getNext on pagingObject for PlaylistTracks failing HOT 5
- Retrying requests that fail due to network time outs HOT 2
- Example Not working HOT 1
- getNext doesn't appear to be working on getMyFollowedArtists HOT 2
- Search: pagingObject.canMakeNextRequest condition does not work HOT 1
- getTrack() returns a Track only filled with SimplifiedTrack data HOT 3
- How to get a Playlist object? HOT 1
- Issue with getArtists() HOT 2
- How to use Spartan
- Suddenly Spartan started crashing my app
- `getTrack` returns invalid Track object whereas `getTracks` works as expected
- Using `getArtists` method causes crash
- Any chance of getting this library updated to latest Alamofire version?
- SpartanError: Insufficient client scope HOT 1
- Playlist Image Issue
- Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value HOT 6
- Add album art to SimpleTrack? HOT 1
- Get track id from Paging Object. HOT 1
- Save Paging Objects using User Defaults.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spartan.