kstenerud / iOS-Universal-Framework

An XCode project template to build universal frameworks (arm7, arm7s, and simulator) for iOS / iPhone.
2.95k stars 474 forks source link

Error when using Cocoapods #181

Open mattapperson opened 10 years ago

mattapperson commented 10 years ago

I am using MK8 and creating a blank project works fine, but after I try to use cocoapods I get the above error.

To reproduce create a standard project, then add a podfile (mine is below) and run pod install then try to build the project

My podfile:

platform :ios, '6.0'

pod 'MJPopupViewController', '~> 0.4'

target :"ProjectTests", :exclusive => true do
  pod 'Kiwi/XCTest'
end

My error:

UFW (M iphonesimulator): INFO: error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: unknown option character `O' in: -ObjC -framework QuartzCore

My Traceback:

Traceback (most recent call last):
  File "/Users/mattapperson/Library/Developer/Xcode/DerivedData/Project-axbslypmnlbxgifmufcelooeqvuw/Build/Intermediates/Project.build/Debug-iphonesimulator/Project.build/Script-D95F838D1901BE05006A5207.sh", line 812, in <module>
    run_build()
  File "/Users/mattapperson/Library/Developer/Xcode/DerivedData/Project-axbslypmnlbxgifmufcelooeqvuw/Build/Intermediates/Project.build/Debug-iphonesimulator/Project.build/Script-D95F838D1901BE05006A5207.sh", line 776, in run_build
    link_local_archs(project)
  File "/Users/mattapperson/Library/Developer/Xcode/DerivedData/Project-axbslypmnlbxgifmufcelooeqvuw/Build/Intermediates/Project.build/Debug-iphonesimulator/Project.build/Script-D95F838D1901BE05006A5207.sh", line 583, in link_local_archs
    print_and_call(project.get_single_arch_link_command(arch))
  File "/Users/mattapperson/Library/Developer/Xcode/DerivedData/Project-axbslypmnlbxgifmufcelooeqvuw/Build/Intermediates/Project.build/Debug-iphonesimulator/Project.build/Script-D95F838D1901BE05006A5207.sh", line 522, in print_and_call
    raise subprocess.CalledProcessError(p.returncode, cmd)
CalledProcessError: Command '['/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool', '-static', '-arch_only', 'x86_64', '-syslibroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk', '-L/Users/mattapperson/Library/Developer/Xcode/DerivedData/Project-axbslypmnlbxgifmufcelooeqvuw/Build/Products/Debug-iphonesimulator', '-filelist', '/Users/mattapperson/Library/Developer/Xcode/DerivedData/Project-axbslypmnlbxgifmufcelooeqvuw/Build/Intermediates/Project.build/Debug-iphonesimulator/Project.build/Objects-normal/x86_64/Project.LinkFileList', '-ObjC -framework QuartzCore', '-o', '/Users/mattapperson/Library/Developer/Xcode/DerivedData/Project-axbslypmnlbxgifmufcelooeqvuw/Build/Intermediates/Project.build/Debug-iphonesimulator/Project.build/Objects-normal/x86_64/Project.ufwbuild']' returned non-zero exit status 1

My xcode version is 5.1

dallasjohnson commented 9 years ago

I'm having a similar problem. Has there been any update on this?

iksnae commented 9 years ago

has anyone resolved this issue?

ceeK commented 9 years ago

Anyone have any suggestions?

jamgo-daniel commented 9 years ago

Bumping this, facing the same issue.