Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Errors running on device with ios7 #6

Open
jackygrahamez opened this issue Jun 2, 2014 · 5 comments
Open

Errors running on device with ios7 #6

jackygrahamez opened this issue Jun 2, 2014 · 5 comments

Comments

@jackygrahamez
Copy link

First I got it running in the emulator. Then I plugged in an iPad Air and got these errors when I ran the code. Any suggestions?


Build target TodoLite



CompileC /Users/USERNAME/Library/Developer/Xcode/DerivedData/TodoLite-flxbprwoxbdatbfoffamahrcmrsq/Build/Intermediates/TodoLite.build/Debug-iphoneos/TodoLite.build/Objects-normal/arm64/CDVCamera.o TodoLite/Plugins/org.apache.cordova.camera/CDVCamera.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler

    cd /Users/USERNAME/Documents/workspace/todo-lite/platforms/ios

    export LANG=en_US.US-ASCII

    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"

    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch arm64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min=6.0 -iquote /Users/USERNAME/Library/Developer/Xcode/DerivedData/TodoLite-flxbprwoxbdatbfoffamahrcmrsq/Build/Intermediates/TodoLite.build/Debug-iphoneos/TodoLite.build/TodoLite-generated-files.hmap -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/TodoLite-flxbprwoxbdatbfoffamahrcmrsq/Build/Intermediates/TodoLite.build/Debug-iphoneos/TodoLite.build/TodoLite-own-target-headers.hmap -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/TodoLite-flxbprwoxbdatbfoffamahrcmrsq/Build/Intermediates/TodoLite.build/Debug-iphoneos/TodoLite.build/TodoLite-all-target-headers.hmap -iquote /Users/USERNAME/Library/Developer/Xcode/DerivedData/TodoLite-flxbprwoxbdatbfoffamahrcmrsq/Build/Intermediates/TodoLite.build/Debug-iphoneos/TodoLite.build/TodoLite-project-headers.hmap -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/TodoLite-flxbprwoxbdatbfoffamahrcmrsq/Build/Products/Debug-iphoneos/include -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/TodoLite-flxbprwoxbdatbfoffamahrcmrsq/Build/Products/Debug-iphoneos/usr/local/lib/include -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/TodoLite-flxbprwoxbdatbfoffamahrcmrsq/Build/Intermediates/UninstalledProducts/include -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/TodoLite-flxbprwoxbdatbfoffamahrcmrsq/Build/Products/Debug-iphoneos -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/TodoLite-flxbprwoxbdatbfoffamahrcmrsq/Build/Intermediates/TodoLite.build/Debug-iphoneos/TodoLite.build/DerivedSources/arm64 -I/Users/USERNAME/Library/Developer/Xcode/DerivedData/TodoLite-flxbprwoxbdatbfoffamahrcmrsq/Build/Intermediates/TodoLite.build/Debug-iphoneos/TodoLite.build/DerivedSources -F/Users/USERNAME/Library/Developer/Xcode/DerivedData/TodoLite-flxbprwoxbdatbfoffamahrcmrsq/Build/Products/Debug-iphoneos -include /Users/USERNAME/Library/Developer/Xcode/DerivedData/TodoLite-flxbprwoxbdatbfoffamahrcmrsq/Build/Intermediates/PrecompiledHeaders/TodoLite-Prefix-ffscdersqdhnuzejrplbryuutlyw/TodoLite-Prefix.pch -MMD -MT dependencies -MF /Users/USERNAME/Library/Developer/Xcode/DerivedData/TodoLite-flxbprwoxbdatbfoffamahrcmrsq/Build/Intermediates/TodoLite.build/Debug-iphoneos/TodoLite.build/Objects-normal/arm64/CDVCamera.d --serialize-diagnostics /Users/USERNAME/Library/Developer/Xcode/DerivedData/TodoLite-flxbprwoxbdatbfoffamahrcmrsq/Build/Intermediates/TodoLite.build/Debug-iphoneos/TodoLite.build/Objects-normal/arm64/CDVCamera.dia -c /Users/USERNAME/Documents/workspace/todo-lite/platforms/ios/TodoLite/Plugins/org.apache.cordova.camera/CDVCamera.m -o /Users/USERNAME/Library/Developer/Xcode/DerivedData/TodoLite-flxbprwoxbdatbfoffamahrcmrsq/Build/Intermediates/TodoLite.build/Debug-iphoneos/TodoLite.build/Objects-normal/arm64/CDVCamera.o



/Users/USERNAME/Documents/workspace/todo-lite/platforms/ios/TodoLite/Plugins/org.apache.cordova.camera/CDVCamera.m:159:34: warning: 'presentModalViewController:animated:' is deprecated: first deprecated in iOS 6.0 [-Wdeprecated-declarations]

            [self.viewController presentModalViewController:cameraPicker animated:YES];

                                 ^

In file included from /Users/USERNAME/Documents/workspace/todo-lite/platforms/ios/TodoLite/Plugins/org.apache.cordova.camera/CDVCamera.m:1:

In file included from /Users/USERNAME/Documents/workspace/todo-lite/platforms/ios/TodoLite/TodoLite-Prefix.pch:25:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:14:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIActivityViewController.h:9:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:251:1: note: method 'presentModalViewController:animated:' declared here

- (void)presentModalViewController:(UIViewController *)modalViewController animated:(BOOL)animated NS_DEPRECATED_IOS(2_0, 6_0);

^

/Users/USERNAME/Documents/workspace/todo-lite/platforms/ios/TodoLite/Plugins/org.apache.cordova.camera/CDVCamera.m:270:54: warning: 'dismissModalViewControllerAnimated:' is deprecated: first deprecated in iOS 6.0 [-Wdeprecated-declarations]

            [[cameraPicker presentingViewController] dismissModalViewControllerAnimated:YES];

                                                     ^

In file included from /Users/USERNAME/Documents/workspace/todo-lite/platforms/ios/TodoLite/Plugins/org.apache.cordova.camera/CDVCamera.m:1:

In file included from /Users/USERNAME/Documents/workspace/todo-lite/platforms/ios/TodoLite/TodoLite-Prefix.pch:25:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:14:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIActivityViewController.h:9:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:254:1: note: method 'dismissModalViewControllerAnimated:' declared here

- (void)dismissModalViewControllerAnimated:(BOOL)animated NS_DEPRECATED_IOS(2_0, 6_0);

^

/Users/USERNAME/Documents/workspace/todo-lite/platforms/ios/TodoLite/Plugins/org.apache.cordova.camera/CDVCamera.m:272:50: warning: 'dismissModalViewControllerAnimated:' is deprecated: first deprecated in iOS 6.0 [-Wdeprecated-declarations]

            [[cameraPicker parentViewController] dismissModalViewControllerAnimated:YES];

                                                 ^

In file included from /Users/USERNAME/Documents/workspace/todo-lite/platforms/ios/TodoLite/Plugins/org.apache.cordova.camera/CDVCamera.m:1:

In file included from /Users/USERNAME/Documents/workspace/todo-lite/platforms/ios/TodoLite/TodoLite-Prefix.pch:25:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:14:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIActivityViewController.h:9:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:254:1: note: method 'dismissModalViewControllerAnimated:' declared here

- (void)dismissModalViewControllerAnimated:(BOOL)animated NS_DEPRECATED_IOS(2_0, 6_0);

^

/Users/USERNAME/Documents/workspace/todo-lite/platforms/ios/TodoLite/Plugins/org.apache.cordova.camera/CDVCamera.m:390:50: warning: 'dismissModalViewControllerAnimated:' is deprecated: first deprecated in iOS 6.0 [-Wdeprecated-declarations]

        [[cameraPicker presentingViewController] dismissModalViewControllerAnimated:YES];

                                                 ^

In file included from /Users/USERNAME/Documents/workspace/todo-lite/platforms/ios/TodoLite/Plugins/org.apache.cordova.camera/CDVCamera.m:1:

In file included from /Users/USERNAME/Documents/workspace/todo-lite/platforms/ios/TodoLite/TodoLite-Prefix.pch:25:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:14:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIActivityViewController.h:9:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:254:1: note: method 'dismissModalViewControllerAnimated:' declared here

- (void)dismissModalViewControllerAnimated:(BOOL)animated NS_DEPRECATED_IOS(2_0, 6_0);

^

/Users/USERNAME/Documents/workspace/todo-lite/platforms/ios/TodoLite/Plugins/org.apache.cordova.camera/CDVCamera.m:392:46: warning: 'dismissModalViewControllerAnimated:' is deprecated: first deprecated in iOS 6.0 [-Wdeprecated-declarations]

        [[cameraPicker parentViewController] dismissModalViewControllerAnimated:YES];

                                             ^

In file included from /Users/USERNAME/Documents/workspace/todo-lite/platforms/ios/TodoLite/Plugins/org.apache.cordova.camera/CDVCamera.m:1:

In file included from /Users/USERNAME/Documents/workspace/todo-lite/platforms/ios/TodoLite/TodoLite-Prefix.pch:25:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:14:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIActivityViewController.h:9:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:254:1: note: method 'dismissModalViewControllerAnimated:' declared here

- (void)dismissModalViewControllerAnimated:(BOOL)animated NS_DEPRECATED_IOS(2_0, 6_0);

^

5 warnings generated.



Ld /Users/USERNAME/Library/Developer/Xcode/DerivedData/TodoLite-flxbprwoxbdatbfoffamahrcmrsq/Build/Products/Debug-iphoneos/TodoLite.app/TodoLite normal arm64

    cd /Users/USERNAME/Documents/workspace/todo-lite/platforms/ios

    export IPHONEOS_DEPLOYMENT_TARGET=6.0

    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"

    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -L/Users/USERNAME/Library/Developer/Xcode/DerivedData/TodoLite-flxbprwoxbdatbfoffamahrcmrsq/Build/Products/Debug-iphoneos -L/Users/USERNAME/Documents/workspace/todo-lite/platforms/ios/TodoLite/Plugins/com.couchbase.lite.phonegap -F/Users/USERNAME/Library/Developer/Xcode/DerivedData/TodoLite-flxbprwoxbdatbfoffamahrcmrsq/Build/Products/Debug-iphoneos -filelist /Users/USERNAME/Library/Developer/Xcode/DerivedData/TodoLite-flxbprwoxbdatbfoffamahrcmrsq/Build/Intermediates/TodoLite.build/Debug-iphoneos/TodoLite.build/Objects-normal/arm64/TodoLite.LinkFileList -dead_strip -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -force_load /Users/USERNAME/Library/Developer/Xcode/DerivedData/TodoLite-flxbprwoxbdatbfoffamahrcmrsq/Build/Products/Debug-iphoneos/libCordova.a -ObjC -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=6.0 -framework AssetsLibrary /Users/USERNAME/Library/Developer/Xcode/DerivedData/TodoLite-flxbprwoxbdatbfoffamahrcmrsq/Build/Products/Debug-iphoneos/libCordova.a -framework CoreGraphics -framework MobileCoreServices -framework CoreLocation -lCBLJSViewCompiler /Users/USERNAME/Documents/workspace/todo-lite/platforms/ios/TodoLite/Plugins/com.couchbase.lite.phonegap/JavaScriptCore.a /Users/USERNAME/Documents/workspace/todo-lite/platforms/ios/TodoLite/Plugins/com.couchbase.lite.phonegap/CouchbaseLite.a /Users/USERNAME/Documents/workspace/todo-lite/platforms/ios/TodoLite/Plugins/com.couchbase.lite.phonegap/CouchbaseLiteListener.a -weak_framework SystemConfiguration -lsqlite3 -lstdc++ -licucore -lz -framework Security -framework CFNetwork -weak_framework ImageIO -Xlinker -dependency_info -Xlinker /Users/USERNAME/Library/Developer/Xcode/DerivedData/TodoLite-flxbprwoxbdatbfoffamahrcmrsq/Build/Intermediates/TodoLite.build/Debug-iphoneos/TodoLite.build/Objects-normal/arm64/TodoLite_dependency_info.dat -o /Users/USERNAME/Library/Developer/Xcode/DerivedData/TodoLite-flxbprwoxbdatbfoffamahrcmrsq/Build/Products/Debug-iphoneos/TodoLite.app/TodoLite



ld: warning: ignoring file /Users/USERNAME/Documents/workspace/todo-lite/platforms/ios/TodoLite/Plugins/com.couchbase.lite.phonegap/JavaScriptCore.a, missing required architecture arm64 in file /Users/USERNAME/Documents/workspace/todo-lite/platforms/ios/TodoLite/Plugins/com.couchbase.lite.phonegap/JavaScriptCore.a (3 slices)

Undefined symbols for architecture arm64:

  "_JSValueUnprotect", referenced from:

      -[CBLJSFunction dealloc] in libCBLJSViewCompiler.a(CBLJSFunction.o)

  "_JSValueMakeNumber", referenced from:

      _IDToValue in libCBLJSViewCompiler.a(CBLJSFunction.o)

  "_JSValueMakeString", referenced from:

      _IDToValue in libCBLJSViewCompiler.a(CBLJSFunction.o)

  "_JSObjectCallAsFunction", referenced from:

      -[CBLJSFunction call:] in libCBLJSViewCompiler.a(CBLJSFunction.o)

  "_JSValueMakeBoolean", referenced from:

      _IDToValue in libCBLJSViewCompiler.a(CBLJSFunction.o)

  "_JSValueToStringCopy", referenced from:

      _WarnJSException in libCBLJSViewCompiler.a(CBLJSFunction.o)

  "_JSObjectMakeFunction", referenced from:

      -[CBLJSFunction initWithCompiler:sourceCode:paramNames:] in libCBLJSViewCompiler.a(CBLJSFunction.o)

  "_JSValueMakeNull", referenced from:

      _IDToValue in libCBLJSViewCompiler.a(CBLJSFunction.o)

  "_JSValueProtect", referenced from:

      -[CBLJSFunction initWithCompiler:sourceCode:paramNames:] in libCBLJSViewCompiler.a(CBLJSFunction.o)

  "_JSGlobalContextRelease", referenced from:

      -[CBLJSCompiler dealloc] in libCBLJSViewCompiler.a(CBLJSFunction.o)

  "_JSValueMakeFromJSONString", referenced from:

      _IDToValue in libCBLJSViewCompiler.a(CBLJSFunction.o)

  "_JSObjectMakeFunctionWithCallback", referenced from:

      -[CBLJSViewCompiler init] in libCBLJSViewCompiler.a(CBLJSViewCompiler.o)

  "_JSGlobalContextCreate", referenced from:

      -[CBLJSCompiler init] in libCBLJSViewCompiler.a(CBLJSFunction.o)

  "_JSValueToBoolean", referenced from:

      ___54-[CBLJSFilterCompiler compileFilterFunction:language:]_block_invoke in libCBLJSViewCompiler.a(CBLJSViewCompiler.o)

  "_JSStringCopyCFString", referenced from:

      _ValueToID in libCBLJSViewCompiler.a(CBLJSViewCompiler.o)

      _WarnJSException in libCBLJSViewCompiler.a(CBLJSFunction.o)

  "_JSValueCreateJSONString", referenced from:

      _ValueToID in libCBLJSViewCompiler.a(CBLJSViewCompiler.o)

  "_JSValueMakeUndefined", referenced from:

      _EmitCallback in libCBLJSViewCompiler.a(CBLJSViewCompiler.o)

  "_JSStringRelease", referenced from:

      -[CBLJSViewCompiler init] in libCBLJSViewCompiler.a(CBLJSViewCompiler.o)

      _ValueToID in libCBLJSViewCompiler.a(CBLJSViewCompiler.o)

      -[CBLJSFunction initWithCompiler:sourceCode:paramNames:] in libCBLJSViewCompiler.a(CBLJSFunction.o)

      _IDToValue in libCBLJSViewCompiler.a(CBLJSFunction.o)

  "_JSContextGetGlobalObject", referenced from:

      -[CBLJSViewCompiler init] in libCBLJSViewCompiler.a(CBLJSViewCompiler.o)

  "_JSObjectSetProperty", referenced from:

      -[CBLJSViewCompiler init] in libCBLJSViewCompiler.a(CBLJSViewCompiler.o)

  "_JSStringCreateWithCFString", referenced from:

      -[CBLJSViewCompiler init] in libCBLJSViewCompiler.a(CBLJSViewCompiler.o)

      -[CBLJSFunction initWithCompiler:sourceCode:paramNames:] in libCBLJSViewCompiler.a(CBLJSFunction.o)

      _IDToValue in libCBLJSViewCompiler.a(CBLJSFunction.o)

ld: symbol(s) not found for architecture arm64

clang: error: linker command failed with exit code 1 (use -v to see invocation)


@tannerlinsley
Copy link

+1, I'm running into the same issue with anything running a 64 bit build.

@Gluri
Copy link

Gluri commented Oct 5, 2014

+1, the same code

@carrotcomputer
Copy link

All @jackygrahamez errors that follow the line:

ld: warning: ignoring file /Users/USERNAME/Documents/workspace/todo-lite/platforms/ios/TodoLite/Plugins/com.couchbase.lite.phonegap/JavaScriptCore.a, missing required architecture arm64 in file /Users/USERNAME/Documents/workspace/todo-lite/platforms/ios/TodoLite/Plugins/com.couchbase.lite.phonegap/JavaScriptCore.a (3 slices) Undefined symbols for architecture arm64:

Are because the static JavaScript Core library (JavaScriptCore.a) included with this project has some problems with arm64. The current solution is to use the SDK JavaScriptCore framework, link it to the project and remove the static library.

See the following issue for the original solution:
couchbaselabs/Couchbase-Lite-PhoneGap-Plugin#17

As for the rest of your errors, not sure. @jackygrahamez, are they warnings or errors? (Appreciate this is a few months late!)

@snej
Copy link

snej commented Dec 18, 2014

get the latest JavaScript Core framework, link it to the project

You don't need to get anything. JavaScriptCore is a public system framework as of iOS 7.

@carrotcomputer
Copy link

Yes, apologies. That is what I meant.. Comment amended :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants