[AC-2783] python compiling scripts could not handle utf8 characters
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2011-09-05T07:56:19.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Appcelerator Modules, Titanium SDK & CLI |
Labels | codecs, compiler, python |
Reporter | Ahmed alarifi |
Assignee | Tony Guntharp |
Created | 2011-07-12T20:50:41.000+0000 |
Updated | 2016-03-08T07:47:41.000+0000 |
Description
When I try to add Arabic characters to info.plist as a "bundle display name" and "bundle name", it will report errors like this:
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/codecs.py", line 351, in write
data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd8 in position 235: ordinal not in range(128)
Command /bin/sh failed with exit code 1
this bug is very critical to all languages except English since we cant name our apps in our languages
you can see the bug occurs even when writing in chinese as reported here:
http://developer.appcelerator.com/question/117569/python-compiling-scripts-could-not-handle-utf8-characters
the following code is the info.plist for my project and cause the problem when I set the "Bundle name" value to non-english characters -in my case it was arabic-
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string>appicon.png</string>
<key>CFBundleIconFiles</key>
<array>
<string>appicon.png</string>
<string>appicon@2x.png</string>
</array>
<key>CFBundleIdentifier</key>
<string>com.efadah.shagaf</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>شغف التعلم</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>com.efadah.shagaf</string>
<key>CFBundleURLSchemes</key>
<array>
<string>omarshagaf</string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleDefault</string>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
and here is the log for the project
Build target omar shagaf
PhaseScriptExecution Pre-Compile "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath/omar shagaf.build/Release-iphoneos/omar shagaf.build/Script-241EAF36118E30260081A5BE.sh"
cd "/Users/MacBook/Documents/Titanium Studio Workspace/omar shagaf/build/iphone"
setenv ACTION build
setenv AD_HOC_CODE_SIGNING_ALLOWED NO
setenv ALTERNATE_GROUP staff
setenv ALTERNATE_MODE u+w,go-w,a+rX
setenv ALTERNATE_OWNER MacBook
setenv ALWAYS_SEARCH_USER_PATHS NO
setenv APPLE_INTERNAL_DEVELOPER_DIR /AppleInternal/Developer
setenv APPLE_INTERNAL_DIR /AppleInternal
setenv APPLE_INTERNAL_DOCUMENTATION_DIR /AppleInternal/Documentation
setenv APPLE_INTERNAL_LIBRARY_DIR /AppleInternal/Library
setenv APPLE_INTERNAL_TOOLS /AppleInternal/Developer/Tools
setenv APPLY_RULES_IN_COPY_FILES NO
setenv ARCHS "armv7 armv6"
setenv ARCHS_STANDARD_32_64_BIT "armv6 armv7"
setenv ARCHS_STANDARD_32_BIT "armv6 armv7"
setenv ARCHS_UNIVERSAL_IPHONE_OS armv7
setenv AVAILABLE_PLATFORMS "iphonesimulator macosx iphoneos"
setenv BUILD_COMPONENTS "headers build"
setenv BUILD_DIR "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/BuildProductsPath"
setenv BUILD_ROOT "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/BuildProductsPath"
setenv BUILD_STYLE
setenv BUILD_VARIANTS normal
setenv BUILT_PRODUCTS_DIR "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/BuildProductsPath/Release-iphoneos"
setenv CACHE_ROOT /var/folders/rk/g3c07kfd4mx093vtdgpwmgrw0000gn/C/com.apple.Xcode.501
setenv CCHROOT /var/folders/rk/g3c07kfd4mx093vtdgpwmgrw0000gn/C/com.apple.Xcode.501
setenv CHMOD /bin/chmod
setenv CHOWN /usr/sbin/chown
setenv CLASS_FILE_DIR "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath/omar shagaf.build/Release-iphoneos/omar shagaf.build/JavaClasses"
setenv CLEAN_PRECOMPS YES
setenv CLONE_HEADERS NO
setenv CODESIGNING_FOLDER_PATH "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/InstallationBuildProductsLocation/Applications/شغف التعلم.app"
setenv CODE_SIGNING_ALLOWED YES
setenv CODE_SIGNING_REQUIRED YES
setenv CODE_SIGN_CONTEXT_CLASS XCiPhoneOSCodeSignContext
setenv CODE_SIGN_IDENTITY "iPhone Distribution: ahmed s a al arifi"
setenv COMBINE_HIDPI_IMAGES NO
setenv COMMAND_MODE legacy
setenv COMPOSITE_SDK_DIRS /var/folders/rk/g3c07kfd4mx093vtdgpwmgrw0000gn/C/com.apple.Xcode.501/CompositeSDKs
setenv COMPRESS_PNG_FILES YES
setenv CONFIGURATION Release
setenv CONFIGURATION_BUILD_DIR "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/BuildProductsPath/Release-iphoneos"
setenv CONFIGURATION_TEMP_DIR "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath/omar shagaf.build/Release-iphoneos"
setenv CONTENTS_FOLDER_PATH "شغف التعلم.app"
setenv COPYING_PRESERVES_HFS_DATA NO
setenv COPY_PHASE_STRIP YES
setenv COPY_RESOURCES_FROM_STATIC_FRAMEWORKS YES
setenv CP /bin/cp
setenv CURRENT_ARCH armv6
setenv CURRENT_VARIANT normal
setenv DEAD_CODE_STRIPPING YES
setenv DEBUGGING_SYMBOLS YES
setenv DEBUG_INFORMATION_FORMAT dwarf-with-dsym
setenv DEPLOYMENT_LOCATION YES
setenv DEPLOYMENT_POSTPROCESSING YES
setenv DERIVED_FILES_DIR "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath/omar shagaf.build/Release-iphoneos/omar shagaf.build/DerivedSources"
setenv DERIVED_FILE_DIR "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath/omar shagaf.build/Release-iphoneos/omar shagaf.build/DerivedSources"
setenv DERIVED_SOURCES_DIR "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath/omar shagaf.build/Release-iphoneos/omar shagaf.build/DerivedSources"
setenv DEVELOPER_APPLICATIONS_DIR /Developer/Applications
setenv DEVELOPER_BIN_DIR /Developer/usr/bin
setenv DEVELOPER_DIR /Developer
setenv DEVELOPER_FRAMEWORKS_DIR /Developer/Library/Frameworks
setenv DEVELOPER_FRAMEWORKS_DIR_QUOTED "\"/Developer/Library/Frameworks\""
setenv DEVELOPER_LIBRARY_DIR /Developer/Library
setenv DEVELOPER_SDK_DIR /Developer/SDKs
setenv DEVELOPER_TOOLS_DIR /Developer/Tools
setenv DEVELOPER_USR_DIR /Developer/usr
setenv DEVELOPMENT_LANGUAGE English
setenv DOCUMENTATION_FOLDER_PATH "شغف التعلم.app/English.lproj/Documentation"
setenv DO_HEADER_SCANNING_IN_JAM NO
setenv DSTROOT "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/InstallationBuildProductsLocation"
setenv DWARF_DSYM_FILE_NAME "شغف التعلم.app.dSYM"
setenv DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT NO
setenv DWARF_DSYM_FOLDER_PATH "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/BuildProductsPath/Release-iphoneos"
setenv EFFECTIVE_PLATFORM_NAME -iphoneos
setenv EMBEDDED_PROFILE_NAME embedded.mobileprovision
setenv ENABLE_HEADER_DEPENDENCIES YES
setenv ENABLE_OPENMP_SUPPORT NO
setenv ENTITLEMENTS_ALLOWED YES
setenv ENTITLEMENTS_REQUIRED YES
setenv EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS ".svn CVS"
setenv EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES "*.nib *.lproj *.framework *.gch (*) CVS .svn .git *.xcodeproj *.xcode *.pbproj *.pbxproj"
setenv EXECUTABLES_FOLDER_PATH "شغف التعلم.app/Executables"
setenv EXECUTABLE_FOLDER_PATH "شغف التعلم.app"
setenv EXECUTABLE_NAME "شغف التعلم"
setenv EXECUTABLE_PATH "شغف التعلم.app/شغف التعلم"
setenv FILE_LIST "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath/omar shagaf.build/Release-iphoneos/omar shagaf.build/Objects/LinkFileList"
setenv FIXED_FILES_DIR "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath/omar shagaf.build/Release-iphoneos/omar shagaf.build/FixedFiles"
setenv FRAMEWORKS_FOLDER_PATH "شغف التعلم.app/Frameworks"
setenv FRAMEWORK_FLAG_PREFIX -framework
setenv FRAMEWORK_SEARCH_PATHS "\"/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/BuildProductsPath/Release-iphoneos\" "
setenv FRAMEWORK_VERSION A
setenv FULL_PRODUCT_NAME "شغف التعلم.app"
setenv GCC3_VERSION 3.3
setenv GCC_C_LANGUAGE_STANDARD c99
setenv GCC_INLINES_ARE_PRIVATE_EXTERN YES
setenv GCC_PFE_FILE_C_DIALECTS "c objective-c c++ objective-c++"
setenv GCC_PRECOMPILE_PREFIX_HEADER YES
setenv GCC_PREFIX_HEADER "omar shagaf_Prefix.pch"
setenv GCC_PREPROCESSOR_DEFINITIONS TI_VERSION=1.7.2
setenv GCC_SYMBOLS_PRIVATE_EXTERN YES
setenv GCC_THUMB_SUPPORT YES
setenv GCC_TREAT_WARNINGS_AS_ERRORS NO
setenv GCC_VERSION com.apple.compilers.llvmgcc42
setenv GCC_VERSION_IDENTIFIER com_apple_compilers_llvmgcc42
setenv GCC_WARN_ABOUT_RETURN_TYPE NO
setenv GCC_WARN_MISSING_PARENTHESES NO
setenv GCC_WARN_SHADOW NO
setenv GCC_WARN_STRICT_SELECTOR_MATCH NO
setenv GCC_WARN_UNUSED_FUNCTION YES
setenv GCC_WARN_UNUSED_PARAMETER NO
setenv GCC_WARN_UNUSED_VALUE NO
setenv GCC_WARN_UNUSED_VARIABLE NO
setenv GENERATE_MASTER_OBJECT_FILE NO
setenv GENERATE_PKGINFO_FILE YES
setenv GENERATE_PROFILING_CODE NO
setenv GID 20
setenv GROUP staff
setenv HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT YES
setenv HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES YES
setenv HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS YES
setenv HEADERMAP_INCLUDES_PROJECT_HEADERS YES
setenv HEADER_SEARCH_PATHS "\"/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/BuildProductsPath/Release-iphoneos/include\" /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/include/libxml2 headers"
setenv ICONV /usr/bin/iconv
setenv INFOPLIST_EXPAND_BUILD_SETTINGS YES
setenv INFOPLIST_FILE Info.plist
setenv INFOPLIST_OUTPUT_FORMAT binary
setenv INFOPLIST_PATH "شغف التعلم.app/Info.plist"
setenv INFOPLIST_PREPROCESS NO
setenv INFOSTRINGS_PATH "شغف التعلم.app/English.lproj/InfoPlist.strings"
setenv INSTALL_DIR "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/InstallationBuildProductsLocation/Applications"
setenv INSTALL_GROUP staff
setenv INSTALL_MODE_FLAG u+w,go-w,a+rX
setenv INSTALL_OWNER MacBook
setenv INSTALL_PATH /Applications
setenv INSTALL_ROOT "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/InstallationBuildProductsLocation"
setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
setenv JAVAC_DEFAULT_FLAGS "-J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8"
setenv JAVA_APP_STUB /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub
setenv JAVA_ARCHIVE_CLASSES YES
setenv JAVA_ARCHIVE_TYPE JAR
setenv JAVA_COMPILER /usr/bin/javac
setenv JAVA_FOLDER_PATH "شغف التعلم.app/Java"
setenv JAVA_FRAMEWORK_RESOURCES_DIRS Resources
setenv JAVA_JAR_FLAGS cv
setenv JAVA_SOURCE_SUBDIR .
setenv JAVA_USE_DEPENDENCIES YES
setenv JAVA_ZIP_FLAGS -urg
setenv JIKES_DEFAULT_FLAGS "+E +OLDCSO"
setenv KEEP_PRIVATE_EXTERNS NO
setenv LD_GENERATE_MAP_FILE NO
setenv LD_MAP_FILE_PATH "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath/omar shagaf.build/Release-iphoneos/omar shagaf.build/شغف التعلم-LinkMap-normal-armv6.txt"
setenv LD_NO_PIE NO
setenv LD_OPENMP_FLAGS -fopenmp
setenv LEGACY_DEVELOPER_DIR /Developer/Library/Xcode/PrivatePlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer
setenv LEX /Developer/usr/bin/lex
setenv LIBRARY_FLAG_NOSPACE YES
setenv LIBRARY_FLAG_PREFIX -l
setenv LIBRARY_SEARCH_PATHS "\"/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/BuildProductsPath/Release-iphoneos\" \"/Users/MacBook/Documents/Titanium Studio Workspace/omar shagaf/build/iphone/lib\" \"/Users/MacBook/Documents/Titanium Studio Workspace/omar shagaf/build/iphone/../../../../tmp/debug/build\" \"/Users/MacBook/Documents/Titanium Studio Workspace/omar shagaf/build/iphone/../../../../tmp/staticlib/build/Debug-iphonesimulator\" \"/Users/MacBook/Documents/Titanium Studio Workspace/omar shagaf/build/iphone/../../../tijs/TiCore/TiCore/build/Release-iphonesimulator\""
setenv LINKER_DISPLAYS_MANGLED_NAMES NO
setenv LINK_FILE_LIST_normal_armv6 "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath/omar shagaf.build/Release-iphoneos/omar shagaf.build/Objects-normal/armv6/شغف التعلم.LinkFileList"
setenv LINK_FILE_LIST_normal_armv7 "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath/omar shagaf.build/Release-iphoneos/omar shagaf.build/Objects-normal/armv7/شغف التعلم.LinkFileList"
setenv LINK_WITH_STANDARD_LIBRARIES YES
setenv LOCALIZED_RESOURCES_FOLDER_PATH "شغف التعلم.app/English.lproj"
setenv LOCAL_ADMIN_APPS_DIR /Applications/Utilities
setenv LOCAL_APPS_DIR /Applications
setenv LOCAL_DEVELOPER_DIR /Library/Developer
setenv LOCAL_LIBRARY_DIR /Library
setenv MACH_O_TYPE mh_execute
setenv MAC_OS_X_PRODUCT_BUILD_VERSION 11A511
setenv MAC_OS_X_VERSION_ACTUAL 1070
setenv MAC_OS_X_VERSION_MAJOR 1070
setenv MAC_OS_X_VERSION_MINOR 0700
setenv NATIVE_ARCH armv6
setenv NATIVE_ARCH_32_BIT i386
setenv NATIVE_ARCH_64_BIT x86_64
setenv NATIVE_ARCH_ACTUAL x86_64
setenv NO_COMMON YES
setenv OBJECT_FILE_DIR "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath/omar shagaf.build/Release-iphoneos/omar shagaf.build/Objects"
setenv OBJECT_FILE_DIR_normal "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath/omar shagaf.build/Release-iphoneos/omar shagaf.build/Objects-normal"
setenv OBJROOT "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath"
setenv ONLY_ACTIVE_ARCH NO
setenv OPTIMIZATION_LEVEL 0
setenv OS MACOS
setenv OSAC /usr/bin/osacompile
setenv OTHER_CFLAGS -DTI_POST_1_2
setenv OTHER_CPLUSPLUSFLAGS -DTI_POST_1_2
setenv OTHER_LDFLAGS "-ObjC -weak_framework iAd -weak_framework iAd -weak_framework CoreMedia -weak_framework CoreVideo"
setenv PACKAGE_TYPE com.apple.package-type.wrapper.application
setenv PASCAL_STRINGS YES
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
setenv PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES "/usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Developer/Headers /Developer/SDKs /Developer/Platforms"
setenv PBDEVELOPMENTPLIST_PATH "شغف التعلم.app/pbdevelopment.plist"
setenv PFE_FILE_C_DIALECTS "c objective-c c++ objective-c++"
setenv PKGINFO_FILE_PATH "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath/omar shagaf.build/Release-iphoneos/omar shagaf.build/PkgInfo"
setenv PKGINFO_PATH "شغف التعلم.app/PkgInfo"
setenv PLATFORM_DEVELOPER_APPLICATIONS_DIR /Developer/Platforms/iPhoneOS.platform/Developer/Applications
setenv PLATFORM_DEVELOPER_BIN_DIR /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin
setenv PLATFORM_DEVELOPER_LIBRARY_DIR /Developer/Library/Xcode/PrivatePlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library
setenv PLATFORM_DEVELOPER_SDK_DIR /Developer/Platforms/iPhoneOS.platform/Developer/SDKs
setenv PLATFORM_DEVELOPER_TOOLS_DIR /Developer/Platforms/iPhoneOS.platform/Developer/Tools
setenv PLATFORM_DEVELOPER_USR_DIR /Developer/Platforms/iPhoneOS.platform/Developer/usr
setenv PLATFORM_DIR /Developer/Platforms/iPhoneOS.platform
setenv PLATFORM_NAME iphoneos
setenv PLATFORM_PREFERRED_ARCH i386
setenv PLATFORM_PRODUCT_BUILD_VERSION 8H7
setenv PLIST_FILE_OUTPUT_FORMAT binary
setenv PLUGINS_FOLDER_PATH "شغف التعلم.app/PlugIns"
setenv PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR YES
setenv PRECOMP_DESTINATION_DIR "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath/omar shagaf.build/Release-iphoneos/omar shagaf.build/PrefixHeaders"
setenv PRESERVE_DEAD_CODE_INITS_AND_TERMS NO
setenv PRIVATE_HEADERS_FOLDER_PATH "شغف التعلم.app/PrivateHeaders"
setenv PRODUCT_NAME "شغف التعلم"
setenv PRODUCT_SETTINGS_PATH "/Users/MacBook/Documents/Titanium Studio Workspace/omar shagaf/build/iphone/Info.plist"
setenv PRODUCT_TYPE com.apple.product-type.application
setenv PROFILING_CODE NO
setenv PROJECT "omar shagaf"
setenv PROJECT_DERIVED_FILE_DIR "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath/omar shagaf.build/DerivedSources"
setenv PROJECT_DIR "/Users/MacBook/Documents/Titanium Studio Workspace/omar shagaf/build/iphone"
setenv PROJECT_FILE_PATH "/Users/MacBook/Documents/Titanium Studio Workspace/omar shagaf/build/iphone/omar shagaf.xcodeproj"
setenv PROJECT_NAME "omar shagaf"
setenv PROJECT_TEMP_DIR "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath/omar shagaf.build"
setenv PROVISIONING_PROFILE 7E509024-0274-4144-8E5A-9BEC4AFDF41B
setenv PROVISIONING_PROFILE_REQUIRED YES
setenv PUBLIC_HEADERS_FOLDER_PATH "شغف التعلم.app/Headers"
setenv RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS YES
setenv REMOVE_CVS_FROM_RESOURCES YES
setenv REMOVE_GIT_FROM_RESOURCES YES
setenv REMOVE_SVN_FROM_RESOURCES YES
setenv RESOURCE_RULES_REQUIRED YES
setenv REZ_COLLECTOR_DIR "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath/omar shagaf.build/Release-iphoneos/omar shagaf.build/ResourceManagerResources"
setenv REZ_OBJECTS_DIR "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath/omar shagaf.build/Release-iphoneos/omar shagaf.build/ResourceManagerResources/Objects"
setenv REZ_SEARCH_PATHS "\"/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/BuildProductsPath/Release-iphoneos\" "
setenv RUN_CLANG_STATIC_ANALYZER NO
setenv SCAN_ALL_SOURCE_FILES_FOR_INCLUDES NO
setenv SCRIPTS_FOLDER_PATH "شغف التعلم.app/Scripts"
setenv SCRIPT_INPUT_FILE_COUNT 0
setenv SCRIPT_OUTPUT_FILE_COUNT 0
setenv SDKROOT /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk
setenv SDK_DIR /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk
setenv SDK_NAME iphoneos4.3
setenv SDK_PRODUCT_BUILD_VERSION 8H7
setenv SED /usr/bin/sed
setenv SEPARATE_STRIP NO
setenv SEPARATE_SYMBOL_EDIT NO
setenv SET_DIR_MODE_OWNER_GROUP YES
setenv SET_FILE_MODE_OWNER_GROUP NO
setenv SHALLOW_BUNDLE YES
setenv SHARED_DERIVED_FILE_DIR "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/BuildProductsPath/Release-iphoneos/DerivedSources"
setenv SHARED_FRAMEWORKS_FOLDER_PATH "شغف التعلم.app/SharedFrameworks"
setenv SHARED_PRECOMPS_DIR /Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/Build/PrecompiledHeaders
setenv SHARED_SUPPORT_FOLDER_PATH "شغف التعلم.app/SharedSupport"
setenv SKIP_INSTALL NO
setenv SOURCE_ROOT "/Users/MacBook/Documents/Titanium Studio Workspace/omar shagaf/build/iphone"
setenv SRCROOT "/Users/MacBook/Documents/Titanium Studio Workspace/omar shagaf/build/iphone"
setenv STRINGS_FILE_OUTPUT_ENCODING binary
setenv STRIP_INSTALLED_PRODUCT YES
setenv STRIP_STYLE all
setenv SUPPORTED_DEVICE_FAMILIES 1,2
setenv SUPPORTED_PLATFORMS "iphonesimulator iphoneos"
setenv SYMROOT "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/BuildProductsPath"
setenv SYSTEM_ADMIN_APPS_DIR /Applications/Utilities
setenv SYSTEM_APPS_DIR /Applications
setenv SYSTEM_CORE_SERVICES_DIR /System/Library/CoreServices
setenv SYSTEM_DEMOS_DIR /Applications/Extras
setenv SYSTEM_DEVELOPER_APPS_DIR /Developer/Applications
setenv SYSTEM_DEVELOPER_BIN_DIR /Developer/usr/bin
setenv SYSTEM_DEVELOPER_DEMOS_DIR "/Developer/Applications/Utilities/Built Examples"
setenv SYSTEM_DEVELOPER_DIR /Developer
setenv SYSTEM_DEVELOPER_DOC_DIR "/Developer/ADC Reference Library"
setenv SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR "/Developer/Applications/Graphics Tools"
setenv SYSTEM_DEVELOPER_JAVA_TOOLS_DIR "/Developer/Applications/Java Tools"
setenv SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR "/Developer/Applications/Performance Tools"
setenv SYSTEM_DEVELOPER_RELEASENOTES_DIR "/Developer/ADC Reference Library/releasenotes"
setenv SYSTEM_DEVELOPER_TOOLS /Developer/Tools
setenv SYSTEM_DEVELOPER_TOOLS_DOC_DIR "/Developer/ADC Reference Library/documentation/DeveloperTools"
setenv SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR "/Developer/ADC Reference Library/releasenotes/DeveloperTools"
setenv SYSTEM_DEVELOPER_USR_DIR /Developer/usr
setenv SYSTEM_DEVELOPER_UTILITIES_DIR /Developer/Applications/Utilities
setenv SYSTEM_DOCUMENTATION_DIR /Library/Documentation
setenv SYSTEM_LIBRARY_DIR /System/Library
setenv TARGETED_DEVICE_FAMILY 2
setenv TARGETNAME "omar shagaf"
setenv TARGET_BUILD_DIR "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/InstallationBuildProductsLocation/Applications"
setenv TARGET_NAME "omar shagaf"
setenv TARGET_TEMP_DIR "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath/omar shagaf.build/Release-iphoneos/omar shagaf.build"
setenv TEMP_DIR "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath/omar shagaf.build/Release-iphoneos/omar shagaf.build"
setenv TEMP_FILES_DIR "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath/omar shagaf.build/Release-iphoneos/omar shagaf.build"
setenv TEMP_FILE_DIR "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath/omar shagaf.build/Release-iphoneos/omar shagaf.build"
setenv TEMP_ROOT "/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath"
setenv TEST_AFTER_BUILD NO
setenv TI_APPID com.efadah.shagaf
setenv TI_SDK_DIR "/Users/MacBook/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/iphone"
setenv TI_VERSION 1.7.2
setenv UID 501
setenv UNLOCALIZED_RESOURCES_FOLDER_PATH "شغف التعلم.app"
setenv UNSTRIPPED_PRODUCT NO
setenv USER MacBook
setenv USER_APPS_DIR /Users/MacBook/Applications
setenv USER_LIBRARY_DIR /Users/MacBook/Library
setenv USE_DYNAMIC_NO_PIC YES
setenv USE_HEADERMAP YES
setenv USE_HEADER_SYMLINKS NO
setenv VALIDATE_PRODUCT YES
setenv VALID_ARCHS "armv6 armv7"
setenv VERBOSE_PBXCP NO
setenv VERSIONPLIST_PATH "شغف التعلم.app/version.plist"
setenv VERSION_INFO_BUILDER MacBook
setenv VERSION_INFO_FILE "شغف التعلم_vers.c"
setenv VERSION_INFO_STRING "\"@(#)PROGRAM:شغف التعلم PROJECT:omar shagaf-\""
setenv WRAPPER_EXTENSION app
setenv WRAPPER_NAME "شغف التعلم.app"
setenv WRAPPER_SUFFIX .app
setenv XCODE_APP_SUPPORT_DIR /Developer/Library/Xcode
setenv XCODE_PRODUCT_BUILD_VERSION 4B110
setenv XCODE_VERSION_ACTUAL 0410
setenv XCODE_VERSION_MAJOR 0400
setenv XCODE_VERSION_MINOR 0410
setenv YACC /Developer/usr/bin/yacc
/bin/sh -c "\"/Users/MacBook/Library/Developer/Xcode/DerivedData/omar_shagaf-hbbdoxdkkalzysawprcwflcmvotp/ArchiveIntermediates/omar shagaf/IntermediateBuildFilesPath/omar shagaf.build/Release-iphoneos/omar shagaf.build/Script-241EAF36118E30260081A5BE.sh\""
[INFO] One moment, building ...
[DEBUG] Detecting modules in /Users/MacBook/Documents/Titanium Studio Workspace/omar shagaf/modules
[DEBUG] Detecting modules in /Users/MacBook/Library/Application Support/Titanium/modules
[INFO] Titanium SDK version: 1.7.2
[INFO] iPhone Device family: ipad
[INFO] iPhone SDK version: 4.3
Traceback (most recent call last):
File "/Users/MacBook/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/iphone/builder.py", line 1406, in <module>
main(sys.argv)
File "/Users/MacBook/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/iphone/builder.py", line 451, in main
compiler = Compiler(project_dir,appid,name,deploytype,xcode_build,devicefamily,iphone_version)
File "/Users/MacBook/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/iphone/compiler.py", line 226, in __init__
self.copy_resources([iphone_resources_dir],app_dir,False)
File "/Users/MacBook/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/iphone/compiler.py", line 530, in copy_resources
add_compiled_resources(source,target)
File "/Users/MacBook/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/iphone/compiler.py", line 447, in add_compiled_resources
print "[DEBUG] copy resources from %s to %s" % (source,target)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/codecs.py", line 351, in write
data, consumed = self.encode(object, self.errors)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd8 in position 283: ordinal not in range(128)
Command /bin/sh failed with exit code 1
please notice the line in the log
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd8 in position 283: ordinal not in range(128)
Command /bin/sh failed with exit code 1
when build any titanium mobile project and set "Bundle name" in info.plist to arabic language or any language -i think- other than english you will have the error I am having right now
Ahmed Would you please provide the files you are using, preferably added in code blocks in the body of this ticket so that it's easy for people to review. Please provide the SDK date and hash you have tested. Please provide the logs of the file/exception. Please also read the [Jira Ticket Checklist](http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-Summary%3AJiraTicketChecklist) to discover what is required in order for tickets to be accepted. Many thanks
As there has been no response, we will resolve this ticket for now. If you have time, you are welcome to add the requested information and we will reopen it. Thanks
I updated the ticket please have a look at it Many thanks
Ahmed It looks pretty good, but still the environment field need to be completed. It doesn't even state what platform you are using, or the build hash. Once these small things are corrected, I will move the ticket across. Thanks for the update.
No response from user.
Closing due to inactivity.