Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-2132

iOS: Compiling the Xcode project gives warnings because TIMOB-12558 wasn't fully implemented.

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: None
    • Component/s: Titanium SDK & CLI
    • Labels:
    • Environment:

      Titanium 3.0.2

      Description

      It seemed someone closed TIMOB-12558 early without actually fixing the __bridge errors. As I can't re-open that issue, I'll create a new one. In the original issue several suggestions how to fix this warnings are in the comment. Please choose one and implement it.

      /Users/steipete/Documents/Titanium Studio Workspace/PSPDFKitTest/build/iphone/Classes/KrollContext.h:160:23: warning: '__bridge' casts have no effect when not using ARC [-Warc-bridge-casts-disallowed-in-nonarc]
      [TRACE] :   KrollContext ctx = (__bridge KrollContext)TiObjectGetPrivate(TiValueToObject(globalContext, value, NULL));
      [TRACE] :   ^~~~~~~~
      [TRACE] :  1 warning generated.
      [TRACE] :  CompileC build/PSPDFKitTest.build/Debug-iphonesimulator/PSPDFKitTest.build/Objects-normal/i386/TiUIiPhoneAlertDialogStyleProxy.o Classes/TiUIiPhoneAlertDialogStyleProxy.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
      [TRACE] :   cd "/Users/steipete/Documents/Titanium Studio Workspace/PSPDFKitTest/build/iphone"
      [TRACE] :   setenv LANG en_US.US-ASCII
      [TRACE] :   setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/opt/local/bin:/opt/local/sbin:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Commands:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin:/Users/steipete/bin:/usr/local/Cellar/autoconf/2.68/bin:/usr/local/Cellar/automake/1.11.3/bin:/usr/local/Cellar/libtool/2.4/bin:/usr/local/share/npm/bin:/Users/steipete/.rvm/bin"
      [TRACE] :   /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -std=c99 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wformat -Wno-missing-braces -Wno-parentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wno-unused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEPLOYTYPE=development -D_LOGID_=7dda6840-0fb4-45cd-956c-00f9177887f8 -DTI_DEVELOPMENT=1 -DDEBUG=1 -DTI_VERSION=3.0.2.GA -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=5.0 -iquote "/Users/steipete/Documents/Titanium Studio Workspace/PSPDFKitTest/build/iphone/build/PSPDFKitTest.build/Debug-iphonesimulator/PSPDFKitTest.build/PSPDFKitTest-generated-files.hmap" "-I/Users/steipete/Documents/Titanium Studio Workspace/PSPDFKitTest/build/iphone/build/PSPDFKitTest.build/Debug-iphonesimulator/PSPDFKitTest.build/PSPDFKitTest-own-target-headers.hmap" "-I/Users/steipete/Documents/Titanium Studio Workspace/PSPDFKitTest/build/iphone/build/PSPDFKitTest.build/Debug-iphonesimulator/PSPDFKitTest.build/PSPDFKitTest-all-target-headers.hmap" -iquote "/Users/steipete/Documents/Titanium Studio Workspace/PSPDFKitTest/build/iphone/build/PSPDFKitTest.build/Debug-iphonesimulator/PSPDFKitTest.build/PSPDFKitTest-project-headers.hmap" "-I/Users/steipete/Documents/Titanium Studio Workspace/PSPDFKitTest/build/iphone/build/Debug-iphonesimulator/include" -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/usr/include/libxml2 -Iheaders "-I/Users/steipete/Documents/Titanium Studio Workspace/PSPDFKitTest/build/iphone/build/PSPDFKitTest.build/Debug-iphonesimulator/PSPDFKitTest.build/DerivedSources/i386" "-I/Users/steipete/Documents/Titanium Studio Workspace/PSPDFKitTest/build/iphone/build/PSPDFKitTest.build/Debug-iphonesimulator/PSPDFKitTest.build/DerivedSources" "-F/Users/steipete/Documents/Titanium Studio Workspace/PSPDFKitTest/build/iphone/build/Debug-iphonesimulator" -DDEBUG -DTI_POST_1_2 -include /var/folders/mv/9rcn1htn54534mw79x894fs80000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/PSPDFKitTest_Prefix-fcpznfxeewctefanzpafvxerzhkt/PSPDFKitTest_Prefix.pch -MMD -MT dependencies -MF "/Users/steipete/Documents/Titanium Studio Workspace/PSPDFKitTest/build/iphone/build/PSPDFKitTest.build/Debug-iphonesimulator/PSPDFKitTest.build/Objects-normal/i386/TiUIiPhoneAlertDialogStyleProxy.d" --serialize-diagnostics "/Users/steipete/Documents/Titanium Studio Workspace/PSPDFKitTest/build/iphone/build/PSPDFKitTest.build/Debug-iphonesimulator/PSPDFKitTest.build/Objects-normal/i386/TiUIiPhoneAlertDialogStyleProxy.dia" -c "/Users/steipete/Documents/Titanium Studio Workspace/PSPDFKitTest/build/iphone/Classes/TiUIiPhoneAlertDialogStyleProxy.m" -o "/Users/steipete/Documents/Titanium Studio Workspace/PSPDFKitTest/build/iphone/build/PSPDFKitTest.build/Debug-iphonesimulator/PSPDFKitTest.build/Objects-normal/i386/TiUIiPhoneAlertDialogStyleProxy.o"
      [TRACE] :  In file included from /Users/steipete/Documents/Titanium Studio Workspace/PSPDFKitTest/build/iphone/Classes/TiUIiPhoneAlertDialogStyleProxy.m:11:
      [TRACE] :  In file included from /Users/steipete/Documents/Titanium Studio Workspace/PSPDFKitTest/build/iphone/Classes/TiUIiPhoneAlertDialogStyleProxy.h:11:
      [TRACE] :  In file included from /Users/steipete/Documents/Titanium Studio Workspace/PSPDFKitTest/build/iphone/Classes/TiProxy.h:10:
      [TRACE] :  In file included from /Users/steipete/Documents/Titanium Studio Workspace/PSPDFKitTest/build/iphone/Classes/TiEvaluator.h:10:
      [TRACE] :  /Users/steipete/Documents/Titanium Studio Workspace/PSPDFKitTest/build/iphone/Classes/KrollContext.h:160:23: warning: '__bridge' casts have no effect when not using ARC [-Warc-bridge-casts-disallowed-in-nonarc]
      [TRACE] :   KrollContext ctx = (__bridge KrollContext)TiObjectGetPrivate(TiValueToObject(globalContext, value, NULL));
      [TRACE] :   ^~~~~~~~
      [TRACE] :  1 warning generated.

      (and 50 more warnings of the same)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dsefton Daniel Sefton
                Reporter:
                steipete Peter Steinberger
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Integration