[GH-ISSUE #23] <unknown>:0: error: could not build Objective-C module 'OAuthSwift' #13

Closed
opened 2026-03-03 16:44:48 +03:00 by kerem · 3 comments
Owner

Originally created by @dja on GitHub (Jan 28, 2015).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/23

Getting an error on compile - didn't get the error the first time around, but getting it now - Can't find what's differing between that and the demo app..

Here's the error:

CompileSwift normal x86_64 /Users/danielarcher/XCode/Whistle/Whistle/ViewController.swift
    cd /Users/danielarcher/XCode/Whistle
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c -primary-file /Users/danielarcher/XCode/Whistle/Whistle/ViewController.swift /Users/danielarcher/XCode/Whistle/Whistle/AppDelegate.swift /Users/danielarcher/XCode/Whistle/Whistle/Constants.swift -target x86_64-apple-ios8.1 -target-cpu core2 -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -I /Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Products/Debug-iphonesimulator -F /Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Products/Debug-iphonesimulator -F /Users/danielarcher/XCode/Whistle/Carthage/Build/iOS -g -module-cache-path /Users/danielarcher/Library/Developer/Xcode/DerivedData/ModuleCache -Xcc -I/Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Intermediates/Whistle.build/Debug-iphonesimulator/Whistle.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Intermediates/Whistle.build/Debug-iphonesimulator/Whistle.build/Whistle-generated-files.hmap -Xcc -I/Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Intermediates/Whistle.build/Debug-iphonesimulator/Whistle.build/Whistle-own-target-headers.hmap -Xcc -I/Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Intermediates/Whistle.build/Debug-iphonesimulator/Whistle.build/Whistle-all-target-headers.hmap -Xcc -iquote -Xcc /Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Intermediates/Whistle.build/Debug-iphonesimulator/Whistle.build/Whistle-project-headers.hmap -Xcc -I/Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Products/Debug-iphonesimulator/include -Xcc -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -Xcc -I/Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Intermediates/Whistle.build/Debug-iphonesimulator/Whistle.build/DerivedSources/x86_64 -Xcc -I/Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Intermediates/Whistle.build/Debug-iphonesimulator/Whistle.build/DerivedSources -Xcc -DDEBUG=1 -emit-module-doc-path /Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Intermediates/Whistle.build/Debug-iphonesimulator/Whistle.build/Objects-normal/x86_64/ViewController~partial.swiftdoc -Onone -module-name Whistle -emit-module-path /Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Intermediates/Whistle.build/Debug-iphonesimulator/Whistle.build/Objects-normal/x86_64/ViewController~partial.swiftmodule -serialize-diagnostics-path /Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Intermediates/Whistle.build/Debug-iphonesimulator/Whistle.build/Objects-normal/x86_64/ViewController.dia -emit-dependencies-path /Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Intermediates/Whistle.build/Debug-iphonesimulator/Whistle.build/Objects-normal/x86_64/ViewController.d -o /Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Intermediates/Whistle.build/Debug-iphonesimulator/Whistle.build/Objects-normal/x86_64/ViewController.o
Originally created by @dja on GitHub (Jan 28, 2015). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/23 Getting an error on compile - didn't get the error the first time around, but getting it now - Can't find what's differing between that and the demo app.. Here's the error: ``` CompileSwift normal x86_64 /Users/danielarcher/XCode/Whistle/Whistle/ViewController.swift cd /Users/danielarcher/XCode/Whistle /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c -primary-file /Users/danielarcher/XCode/Whistle/Whistle/ViewController.swift /Users/danielarcher/XCode/Whistle/Whistle/AppDelegate.swift /Users/danielarcher/XCode/Whistle/Whistle/Constants.swift -target x86_64-apple-ios8.1 -target-cpu core2 -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -I /Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Products/Debug-iphonesimulator -F /Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Products/Debug-iphonesimulator -F /Users/danielarcher/XCode/Whistle/Carthage/Build/iOS -g -module-cache-path /Users/danielarcher/Library/Developer/Xcode/DerivedData/ModuleCache -Xcc -I/Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Intermediates/Whistle.build/Debug-iphonesimulator/Whistle.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Intermediates/Whistle.build/Debug-iphonesimulator/Whistle.build/Whistle-generated-files.hmap -Xcc -I/Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Intermediates/Whistle.build/Debug-iphonesimulator/Whistle.build/Whistle-own-target-headers.hmap -Xcc -I/Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Intermediates/Whistle.build/Debug-iphonesimulator/Whistle.build/Whistle-all-target-headers.hmap -Xcc -iquote -Xcc /Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Intermediates/Whistle.build/Debug-iphonesimulator/Whistle.build/Whistle-project-headers.hmap -Xcc -I/Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Products/Debug-iphonesimulator/include -Xcc -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -Xcc -I/Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Intermediates/Whistle.build/Debug-iphonesimulator/Whistle.build/DerivedSources/x86_64 -Xcc -I/Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Intermediates/Whistle.build/Debug-iphonesimulator/Whistle.build/DerivedSources -Xcc -DDEBUG=1 -emit-module-doc-path /Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Intermediates/Whistle.build/Debug-iphonesimulator/Whistle.build/Objects-normal/x86_64/ViewController~partial.swiftdoc -Onone -module-name Whistle -emit-module-path /Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Intermediates/Whistle.build/Debug-iphonesimulator/Whistle.build/Objects-normal/x86_64/ViewController~partial.swiftmodule -serialize-diagnostics-path /Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Intermediates/Whistle.build/Debug-iphonesimulator/Whistle.build/Objects-normal/x86_64/ViewController.dia -emit-dependencies-path /Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Intermediates/Whistle.build/Debug-iphonesimulator/Whistle.build/Objects-normal/x86_64/ViewController.d -o /Users/danielarcher/Library/Developer/Xcode/DerivedData/Whistle-aabmrwgbetwsozfyrtwlpnvcnaxk/Build/Intermediates/Whistle.build/Debug-iphonesimulator/Whistle.build/Objects-normal/x86_64/ViewController.o ```
kerem closed this issue 2026-03-03 16:44:48 +03:00
Author
Owner

@dja commented on GitHub (Jan 28, 2015):

By the way, using Carthage to have OAuthSwift linked and built on run, as per Carthage instructions.

<!-- gh-comment-id:71902277 --> @dja commented on GitHub (Jan 28, 2015): By the way, using Carthage to have OAuthSwift linked and built on run, as per Carthage instructions.
Author
Owner

@dongri commented on GitHub (Jan 29, 2015):

Hi @danieljacobarcher
try remove DerivedData

$ rm -rf ~/Library/Developer/Xcode/DerivedData/*

and

Clean Swift Project
Menu -> Product -> Celan

<!-- gh-comment-id:71967634 --> @dongri commented on GitHub (Jan 29, 2015): Hi @danieljacobarcher try remove DerivedData ``` $ rm -rf ~/Library/Developer/Xcode/DerivedData/* ``` and Clean Swift Project Menu -> Product -> Celan
Author
Owner

@dja commented on GitHub (Jan 29, 2015):

I just had to remove DerivedData. Thanks!

<!-- gh-comment-id:71971837 --> @dja commented on GitHub (Jan 29, 2015): I just had to remove DerivedData. Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/OAuthSwift#13
No description provided.