ios - Errors building Xcode Project after adding in Run Script fatal error: lipo: input file -


i had following errors when attempting upload app app store error itms-90087, error itms-90209, & error itms-90125 outlined in question submit app store issues: unsupported architecture x86 , used script shown below try , fix problem:

app_path="${target_build_dir}/${wrapper_name}"  # script loops through frameworks embedded in application , # removes unused architectures. find "$app_path" -name '*.framework' -type d | while read -r framework framework_executable_name=$(defaults read "$framework/info.plist" cfbundleexecutable) framework_executable_path="$framework/$framework_executable_name" echo "executable $framework_executable_path"  extracted_archs=()  arch in $archs echo "extracting $arch $framework_executable_name" lipo -extract "$arch" "$framework_executable_path" -o "$framework_executable_path-$arch" extracted_archs+=("$framework_executable_path-$arch") done  echo "merging extracted architectures: ${archs}" lipo -o "$framework_executable_path-merged" -create "${extracted_archs[@]}" rm "${extracted_archs[@]}"  echo "replacing original executable thinned version" rm "$framework_executable_path" mv "$framework_executable_path-merged" "$framework_executable_path"  done 

now i'm getting lot of errors trying compile code in xcode.

executable /users/[username]/library/developer/xcode/deriveddata/[appname]-egnqksafjoylrcaxerbjrknmxdgl/build/products/debug-iphoneos/[appname].app/frameworks/bolts.framework/bolts extracting arm64 bolts  fatal error: lipo: input file (/users/[username]/library/developer/xcode/deriveddata/[appname]-egnqksafjoylrcaxerbjrknmxdgl/build/products/debug-iphoneos/[appname].app/frameworks/bolts.framework/bolts) must fat file when -extract option specified  merging extracted architectures: arm64 fatal error: lipo: can't open input file: /users/[username]/library/developer/xcode/deriveddata/[appname]-egnqksafjoylrcaxerbjrknmxdgl/build/products/debug-iphoneos/[appname].app/frameworks/bolts.framework/bolts-arm64 (no such file or directory)  rm: /users/[username]/library/developer/xcode/deriveddata/[appname]-egnqksafjoylrcaxerbjrknmxdgl/build/products/debug-iphoneos/[appname].app/frameworks/bolts.framework/bolts-arm64: no such file or directory  replacing original executable thinned version mv: rename /users/[username]/library/developer/xcode/deriveddata/[appname]-egnqksafjoylrcaxerbjrknmxdgl/build/products/debug-iphoneos/[appname].app/frameworks/bolts.framework/bolts-merged /users/[username]/library/developer/xcode/deriveddata/[appname]-egnqksafjoylrcaxerbjrknmxdgl/build/products/debug-iphoneos/[appname].app/frameworks/bolts.framework/bolts: no such file or directory 

any ideas how fix?

well seems bolts framework not fat binary (i.e. not contain multiple architectures binaries) hence extraction , merging fails. guess simplest solution run script specific frameworks comes binary x86_64 arch. can identify fat binaries using 'file' command.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -