diff --git a/.travis.yml b/.travis.yml
index 44f3d5507f7f93353bbd2f0360594b4de2c335d9..e2d8114110a610962d3095aca31f2b41a6037de3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -68,6 +68,7 @@ matrix:
         - go run build/ci.go archive -type tar -signer OSX_SIGNING_KEY -upload gethstore/builds
 
         # Build the iOS framework and upload it to CocoaPods and Azure
+        - gem uninstall cocoapods -a
         - gem install cocoapods --pre
         - travis_wait 30 go run build/ci.go xcode -signer IOS_SIGNING_KEY -deploy trunk -upload gethstore/builds
 
diff --git a/build/mvn.settings b/build/mvn.settings
index 406b409b9b5dce3fca66d2bb4dfc2f78a40c6193..8d06c048eec81497f6a7ddf9c8c193aee67dc319 100644
--- a/build/mvn.settings
+++ b/build/mvn.settings
@@ -16,7 +16,7 @@
         <activeByDefault>true</activeByDefault>
       </activation>
       <properties>
-        <gpg.executable>gpg</gpg.executable>
+        <gpg.executable>gpg2</gpg.executable>
         <gpg.passphrase></gpg.passphrase>
       </properties>
     </profile>