Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot codesign Alamofire (exit code 1) #2183

Closed
NickGaens opened this issue Jun 27, 2017 · 2 comments
Closed

Cannot codesign Alamofire (exit code 1) #2183

NickGaens opened this issue Jun 27, 2017 · 2 comments

Comments

@NickGaens
Copy link

Hello, I'm trying to integrate Alamofire into my Swift4 app, but when building the app, Xcode shows the following error.

PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/nickgaens/Library/Developer/Xcode/DerivedData/Emprova_Swift-bbvmoytlhlbqpueyftstselvwhdj/Build/Intermediates.noindex/Emprova\ Swift.build/Debug-iphonesimulator/Emprova\ GPS\ Swift.build/Script-AB9553D032B10870946A74DA.sh
    cd "/Users/nickgaens/Documents/Emprova iOS Swift"
    /bin/sh -c \"/Users/nickgaens/Library/Developer/Xcode/DerivedData/Emprova_Swift-bbvmoytlhlbqpueyftstselvwhdj/Build/Intermediates.noindex/Emprova\ Swift.build/Debug-iphonesimulator/Emprova\ GPS\ Swift.build/Script-AB9553D032B10870946A74DA.sh\"

mkdir -p /Users/nickgaens/Library/Developer/Xcode/DerivedData/Emprova_Swift-bbvmoytlhlbqpueyftstselvwhdj/Build/Products/Debug-iphonesimulator/Emprova GPS Swift.app/Frameworks
rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "/Users/nickgaens/Library/Developer/Xcode/DerivedData/Emprova_Swift-bbvmoytlhlbqpueyftstselvwhdj/Build/Products/Debug-iphonesimulator/Alamofire.framework" "/Users/nickgaens/Library/Developer/Xcode/DerivedData/Emprova_Swift-bbvmoytlhlbqpueyftstselvwhdj/Build/Products/Debug-iphonesimulator/Emprova GPS Swift.app/Frameworks"
building file list ... done

sent 94 bytes  received 20 bytes  228.00 bytes/sec
total size is 0  speedup is 0.00
Code Signing /Users/nickgaens/Library/Developer/Xcode/DerivedData/Emprova_Swift-bbvmoytlhlbqpueyftstselvwhdj/Build/Products/Debug-iphonesimulator/Emprova GPS Swift.app/Frameworks/Alamofire.framework with Identity -
/usr/bin/codesign --force --sign -  --preserve-metadata=identifier,entitlements '/Users/nickgaens/Library/Developer/Xcode/DerivedData/Emprova_Swift-bbvmoytlhlbqpueyftstselvwhdj/Build/Products/Debug-iphonesimulator/Emprova GPS Swift.app/Frameworks/Alamofire.framework'
/Users/nickgaens/Library/Developer/Xcode/DerivedData/Emprova_Swift-bbvmoytlhlbqpueyftstselvwhdj/Build/Products/Debug-iphonesimulator/Emprova GPS Swift.app/Frameworks/Alamofire.framework: bundle format unrecognized, invalid, or unsuitable
Command /bin/sh failed with exit code 1

I'm using Xcode 9.0 beta 2 (9M137d) with the Swift 4-version tied to it, Cocoapods 1.2.1 with Podfile:

platform :ios, '10.0'

target 'Emprova GPS Demo Swift' do
  use_frameworks!

  pod 'Alamofire', '~> 4.5.0'
  pod 'AlamofireNetworkActivityIndicator', '~> 2.2.0'
  pod 'KeyClip'
  pod 'Localize-Swift', '~> 1.7.1'
  pod 'FMDB'

end

target 'Emprova GPS Swift' do
  use_frameworks!

  pod 'Alamofire', '~> 4.5.0'
  pod 'AlamofireNetworkActivityIndicator', '~> 2.2.0'
  pod 'KeyClip'
  pod 'Localize-Swift', '~> 1.7.1'
  pod 'FMDB'

end

I have not touched any pod, so they're all in a default state.

@NickGaens
Copy link
Author

I have created a StackOverflow question in regard to this issue. "Xcode 9 fails to build Swift 4 project with Alamofire pod" on StackOverflow

@NickGaens
Copy link
Author

This was all because of having opened my project using the .xcodeproj entry instead of the .xcworkspace entry. I've added this information to the linked StackOverflow question as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant