iOS-Universal-Framework icon indicating copy to clipboard operation
iOS-Universal-Framework copied to clipboard

XCode 5 Shell Script Invocation error

Open thiagoramos23 opened this issue 12 years ago • 22 comments

I know that lib works perfect with XCode 4. But i'm using xcode 5 now and i'm getting this error. Hope someone can help.

Build other platform xcodebuild -project /Users/thiagoramos/Google Drive/ios/RanckFramework/RKFramework/RKFramework.xcodeproj -target RKFramework -configuration Release -sdk iphonesimulator7.0 BUILD_DIR=/Users/thiagoramos/Library/Developer/Xcode/DerivedData/RKFramework-cemulnyqhftczvdvcsmkuyodsoqc/Build/Products CONFIGURATION_TEMP_DIR=/Users/thiagoramos/Library/Developer/Xcode/DerivedData/RKFramework-cemulnyqhftczvdvcsmkuyodsoqc/Build/Intermediates/RKFramework.build/Release-iphonesimulator build Build settings from command line: BUILD_DIR = /Users/thiagoramos/Library/Developer/Xcode/DerivedData/RKFramework-cemulnyqhftczvdvcsmkuyodsoqc/Build/Products CONFIGURATION_TEMP_DIR = /Users/thiagoramos/Library/Developer/Xcode/DerivedData/RKFramework-cemulnyqhftczvdvcsmkuyodsoqc/Build/Intermediates/RKFramework.build/Release-iphonesimulator SDKROOT = iphonesimulator7.0

=== BUILD TARGET RKFramework OF PROJECT RKFramework WITH CONFIGURATION Release ===

Check dependencies No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=i386, VALID_ARCHS=armv7 armv7s).

** BUILD FAILED **

The following build commands failed: Check dependencies (1 failure) Command /bin/sh failed with exit code 65

thiagoramos23 avatar Sep 12 '13 21:09 thiagoramos23

Hi folks,

I'm having issues with Xcode 5 as well. I use iOS-Universal-Framework to build the framework for the Spark Inspector, and I'm getting this output in the latest build of Xcode 5:

CalledProcessError: Command '['/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool', '-static', '-arch_only', 'armv6', '-syslibroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk', '-L/Volumes/Work Files/F376/Projects/iOS-View-Explorer/iOS/DerivedData/SparkInspector/Build/Products/Debug-iphoneos', '-filelist', '/Volumes/Work Files/F376/Projects/iOS-View-Explorer/iOS/DerivedData/SparkInspector/Build/Intermediates/SparkInspector.build/Debug-iphoneos/SparkInspector.build/Objects-normal/armv6/SparkInspector.LinkFileList', '-o', '/Volumes/Work Files/F376/Projects/iOS-View-Explorer/iOS/DerivedData/SparkInspector/Build/Intermediates/SparkInspector.build/Debug-iphoneos/SparkInspector.build/Objects-normal/armv6/SparkInspector.ufwbuild']' returned non-zero exit status 1
Command /bin/sh failed with exit code 1

bengotow avatar Sep 17 '13 20:09 bengotow

Unfortunately, I am having a similar issue. The build error I'm seeing is:

line 101: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/libtool: No such file or directory

baskren avatar Sep 21 '13 01:09 baskren

Hey guys,

I was able to resolve my issues by switching to pub-buritto's branch of iOS-Universal-Framework, which includes this commit: https://github.com/pub-burrito/iOS-Universal-Framework/commit/08a4052b6d056a25ae2c9c2cadedbd0e01c8a516.

I pulled down the zip file for his master branch, replaced my templates in Xcode, and created a new 'fake framework' project. Then, I opened my existing (not compiling) project and replaced the existing "Run Script" phase with the two "Run Script" phases in the pub-burrito framework project.

I'm not sure what's going on with @kstenerud's branch. It seems to have other Xcode5 related commits, but this one did the trick for me.

bengotow avatar Sep 21 '13 03:09 bengotow

I don't known if this could help you but I've fixed this by copying the libtool from: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ to /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/

chroba avatar Sep 24 '13 12:09 chroba

FYI In order to be able to run from my iPhone, I also add to change the second Run Script to (iOS 7 does not seems to like the Resources folder for some reason):

Build embedded framework structure

echo "Build Embedded Framework"

echo rm -rf "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.embeddedframework" rm -rf "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.embeddedframework" echo mkdir -p "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.embeddedframework/rsrc" mkdir -p "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.embeddedframework/rsrc" echo cp -a "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}" "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.embeddedframework/" cp -a "${BUILT_PRODUCTS_DIR}/${WRAPPER_NAME}" "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.embeddedframework/"

declare -a UFW_FILE_LIST list_files "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" UFW_FILE_LIST for filename in "${UFW_FILE_LIST[@]}" do if [[ "${filename}" != "Info.plist" ]] && [[ ! "${filename}" =~ .*.lproj$ ]] then echo ln -sf "../${WRAPPER_NAME}/rsrc/${filename}" "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.embeddedframework/rsrc/${filename}" ln -sf "../${WRAPPER_NAME}/rsrc/${filename}" "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.embeddedframework/rsrc/${filename}" fi done

chroba avatar Sep 24 '13 13:09 chroba

Thanks, @chroba It works for me by copying libtool

Seems the Resources folder does not cause problem to me.

harryworld avatar Sep 24 '13 14:09 harryworld

Copying the libtool also works for me.

terryxiao avatar Sep 26 '13 08:09 terryxiao

Further thanks to @chroba ! Copying libtool worked like a charm.

JoshuaKaden avatar Sep 29 '13 15:09 JoshuaKaden

I am having this issue, copy the libtool didn't fix it...

Build other platform
xcodebuild -project /Users/jnaguin/Workspace/Project.xcodeproj -target Project -configuration Debug -sdk iphonesimulator7.0 BUILD_DIR=/Users/jnaguin/Library/Developer/Xcode/DerivedData/Project-fkcaraphakyczyfrezqbqpbipwax/Build/Products CONFIGURATION_TEMP_DIR=/Users/jnaguin/Library/Developer/Xcode/DerivedData/Project-fkcaraphakyczyfrezqbqpbipwax/Build/Intermediates/Project.build/Debug-iphonesimulator build
Build settings from command line:
    BUILD_DIR = /Users/jnaguin/Library/Developer/Xcode/DerivedData/Project-fkcaraphakyczyfrezqbqpbipwax/Build/Products
    CONFIGURATION_TEMP_DIR = /Users/jnaguin/Library/Developer/Xcode/DerivedData/Project-fkcaraphakyczyfrezqbqpbipwax/Build/Intermediates/Project.build/Debug-iphonesimulator
    SDKROOT = iphonesimulator7.0

=== BUILD TARGET Project OF PROJECT Project WITH CONFIGURATION Debug ===

Check dependencies
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv6, VALID_ARCHS=i386 x86_64).

** BUILD FAILED **


The following build commands failed:
    Check dependencies
(1 failure)
Command /bin/sh failed with exit code 65
SOLUTION:

I fixed adding "i386" to the Valid Architectures setting under Build Settings

jonathannaguin avatar Oct 01 '13 08:10 jonathannaguin

The error that I have is

Building on armv7 standard arch:

target specifies product type 'com.apple.product-type.framework.static', but there's no such product type for the 'iphoneos' platform

loretoparisi avatar Oct 01 '13 09:10 loretoparisi

It worked after using the commit: https://github.com/pub-burrito/iOS-Universal-Framework/commit/08a4052b6d056a25ae2c9c2cadedbd0e01c8a516

  1. Installing the framework again
  2. Creating a new project and copying the three Run Script in the project with errors.
  3. Adding i386 as valid architecture.

Weird!

loretoparisi avatar Oct 01 '13 09:10 loretoparisi

Copying libtool worked for me, too :+1: Thanks for that.

bliljerk101 avatar Oct 06 '13 19:10 bliljerk101

It worked for me too by copying the libtool. THank you

zirinisp avatar Oct 08 '13 09:10 zirinisp

Could there be a fix to the library itself?

sidan5 avatar Oct 14 '13 11:10 sidan5

libtool copy worked for me too - thanks for the workaround.

stephent avatar Oct 30 '13 01:10 stephent

copied libtool is working \(^o^)/ thanks @chroba \(^o^)/

oden avatar Nov 13 '13 03:11 oden

Hooray copying libtool works =]

clibbz0r avatar Feb 03 '14 01:02 clibbz0r

copied libtool working for me too, thanks @chroba

drgarbage avatar Feb 11 '14 23:02 drgarbage

Adding i386 as valid architecture, Good!

angeltwbtea avatar Feb 14 '14 03:02 angeltwbtea

Adding i386 as valid architecture \(^o^)/

jfsagasti avatar Mar 27 '14 17:03 jfsagasti

Adding i386 as valid architecture working for me.

easonoutlook avatar Apr 28 '14 05:04 easonoutlook

copying libtool is working!

saltwat5r avatar Aug 08 '14 07:08 saltwat5r