amplab / carat

Carat: Collaborative Energy Debugging
http://carat.cs.helsinki.fi
114 stars 39 forks source link

[iOS] Compilation fails at master (55a16d075831b26eb2c3ca262771474a6a7b175b) and XCode 5.1.1 #8

Open vbergae opened 10 years ago

vbergae commented 10 years ago

After cloning master branch on commit 55a16d075831b26eb2c3ca262771474a6a7b175b compilation fails with messages:

CurrentView.xib: error: Compilation failed. Unable to write to path:     /Users/user/Library/Developer/Xcode/DerivedData/Carat-bgsfrjjjylhdsgeralfaizedmvlc/Build/Products/Debug-iphonesimulator/Carat.app/CurrentView.nib
    Underlying Errors:
        Description: The file “CurrentView.nib” couldn’t be saved in the folder “Carat.app” because a file with the same name already exists.
        Failure Reason: A file with the name “CurrentView.nib” already exists.
        Recovery Suggestion: To save the file, either provide a different name, or move aside or delete the existing file, and try again.
        Underlying Errors:
            Description: The operation couldn’t be completed. File exists
            Failure Reason: File exists
        Description: “CurrentView.nib” couldn’t be removed.
        Failure Reason: The file doesn’t exist.
        Underlying Errors:
            Description: The operation couldn’t be completed. No such file or directory
            Failure Reason: No such file or directory

After removing one occurrence in build phases I've got a new error:

CpResource carat.png /Users/vbergae/Library/Developer/Xcode/DerivedData/Carat-bgsfrjjjylhdsgeralfaizedmvlc/Build/Products/Debug-iphonesimulator/Carat.app/carat.png
    cd /Users/vbergae/Desktop/carat/app/ios
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/vbergae/Desktop/carat/app/ios/carat.png /Users/vbergae/Library/Developer/Xcode/DerivedData/Carat-bgsfrjjjylhdsgeralfaizedmvlc/Build/Products/Debug-iphonesimulator/Carat.app

error: /Users/vbergae/Desktop/carat/app/ios/carat.png: No such file or directory

And removing the image generates:

error: duplicate interface definition for class 'SocializeObject'
lagerspetz commented 10 years ago

Hi, Have you installed Cocoa Pods on your Mac? Please follow instructions here to do so (along with the Socialize SDK) http://socialize.github.io/socialize-sdk-ios/getting_started.html#installing-with-cocoapods

Also make sure to open the Carat Workspace after installing Cocoa Pods and Socialize SDK, not the Carat Xcode project.

On 19.08.2014 14:41, Víctor Berga wrote:

After cloning master branch on commit 55a16d0 https://github.com/amplab/carat/commit/55a16d075831b26eb2c3ca262771474a6a7b175b compilation fails with messages:

CurrentView.xib: error: Compilation failed. Unable to write to path: /Users/user/Library/Developer/Xcode/DerivedData/Carat-bgsfrjjjylhdsgeralfaizedmvlc/Build/Products/Debug-iphonesimulator/Carat.app/CurrentView.nib Underlying Errors: Description: The file “CurrentView.nib” couldn’t be saved in the folder “Carat.app” because a file with the same name already exists. Failure Reason: A file with the name “CurrentView.nib” already exists. Recovery Suggestion: To save the file, either provide a different name, or move aside or delete the existing file, and try again. Underlying Errors: Description: The operation couldn’t be completed. File exists Failure Reason: File exists Description: “CurrentView.nib” couldn’t be removed. Failure Reason: The file doesn’t exist. Underlying Errors: Description: The operation couldn’t be completed. No such file or directory Failure Reason: No such file or directory

After removing one occurrence in build phases I've got a new error:

|CpResource carat.png /Users/vbergae/Library/Developer/Xcode/DerivedData/Carat-bgsfrjjjylhdsgeralfaizedmvlc/Build/Products/Debug-iphonesimulator/Carat.app/carat.png cd /Users/vbergae/Desktop/carat/app/ios export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/vbergae/Desktop/carat/app/ios/carat.png /Users/vbergae/Library/Developer/Xcode/DerivedData/Carat-bgsfrjjjylhdsgeralfaizedmvlc/Build/Products/Debug-iphonesimulator/Carat.app

error: /Users/vbergae/Desktop/carat/app/ios/carat.png: No such file or directory |

And removing the image generates:

error: duplicate interface definition for class 'SocializeObject'

— Reply to this email directly or view it on GitHub https://github.com/amplab/carat/issues/8.

Eemil Lagerspetz email: eemil@gmx.com

vbergae commented 10 years ago

Hi!

Yes I did before trying to compile