{"action":"created","issue":{"url":"https://api.github.com/repos/Hybrid-Force/cordova-plugin-leancloud/issues/2","labels_url":"https://api.github.com/repos/Hybrid-Force/cordova-plugin-leancloud/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Hybrid-Force/cordova-plugin-leancloud/issues/2/comments","events_url":"https://api.github.com/repos/Hybrid-Force/cordova-plugin-leancloud/issues/2/events","html_url":"https://github.com/Hybrid-Force/cordova-plugin-leancloud/issues/2","id":94217687,"number":2,"title":"ios avoscloud.framework 版本","user":{"login":"BenBBear","id":7659710,"avatar_url":"https://avatars.githubusercontent.com/u/7659710?v=3","gravatar_id":"","url":"https://api.github.com/users/BenBBear","html_url":"https://github.com/BenBBear","followers_url":"https://api.github.com/users/BenBBear/followers","following_url":"https://api.github.com/users/BenBBear/following{/other_user}","gists_url":"https://api.github.com/users/BenBBear/gists{/gist_id}","starred_url":"https://api.github.com/users/BenBBear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenBBear/subscriptions","organizations_url":"https://api.github.com/users/BenBBear/orgs","repos_url":"https://api.github.com/users/BenBBear/repos","events_url":"https://api.github.com/users/BenBBear/events{/privacy}","received_events_url":"https://api.github.com/users/BenBBear/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-10T05:30:51Z","updated_at":"2015-07-10T08:34:39Z","closed_at":null,"body":"ios使用的时候出现了如下错误（iphone真机测试）\r\n\r\n```\r\n2015-07-10 14:56:08.542 ionic[9193:1528332] THREAD WARNING: ['LeanPush'] took '2452.281006' ms. Plugin should use a background thread.\r\n2015-07-10 14:56:08.559 ionic[9193:1528332] null\r\n2015-07-10 14:56:32.352 ionic[9193:1528332] didRegister\r\n06:56:32.0406 <NSThread: 0x170078600>{number = 6, name = (null)} | __54-[AVPaasClient goRequest:saveResult:block:retryTimes:]_block_invoke379 [Line 543] \r\nError (0.047s)\r\nError Domain=AVNetworkingErrorDomain Code=-1011 \"Expected status code in (200-299), got 400\" UserInfo=0x1700ff300 {AVNetworkingOperationFailingURLResponseErrorKey=<NSHTTPURLResponse: 0x170228140> { URL: https://api.leancloud.cn/1.1/batch/save } { status code: 400, headers {\r\n    \"Cache-Control\" = \"no-cache,no-store\";\r\n    \"Content-Length\" = 46;\r\n    \"Content-Type\" = \"application/json;charset=utf-8\";\r\n    Date = \"Fri, 10 Jul 2015 06:56:30 GMT\";\r\n    Pragma = \"no-cache\";\r\n    Server = Tengine;\r\n} }, NSLocalizedRecoverySuggestion={\"code\":1,\"error\":\"'deviceType' is required.\"}, NSErrorFailingURLKey=https://api.leancloud.cn/1.1/batch/save, AVNetworkingOperationFailingURLRequestErrorKey=<NSMutableURLRequest: 0x174203b50> { URL: https://api.leancloud.cn/1.1/batch/save }, NSLocalizedDescription=Expected status code in (200-299), got 400}\r\n06:56:32.0407 <NSThread: 0x170078600>{number = 6, name = (null)} | +[AVErrorUtils errorFromJSON:] [Line 192] error: Error Domain=AVOS Cloud Error Domain Code=1 \"'deviceType' is required.\" UserInfo=0x170078b40 {error='deviceType' is required., NSLocalizedDescription='deviceType' is required., code=1}\r\n2015-07-10 14:56:51.494 ionic[9193:1528332] receiveRemoteNotification\r\n2015-07-10 14:56:57.789 ionic[9193:1528332] Received memory warning.\r\n```\r\n\r\n查了一下， 也有人遇到类似错误：\r\n\r\n- https://ticket.avosapps.com/tickets/4906\r\n- https://ticket.leancloud.cn/tickets/3070\r\n\r\n\r\n给出的原因是avoscloud sdk的版本原因，更新一下就好了， 之后自己去官网下了最新的sdk  v3.1.2.6, 更换了原先的avoscloud.frameworks文件， 但是`ionic build ios`的时候出现了以下问题：\r\n\r\n\r\n```\r\nLd /Users/xyzhang/Library/Developer/Xcode/DerivedData/ionic-eevbmtxygegsnvatyiwelwwouldc/Build/Products/Debug-iphoneos/ionic.app/ionic normal arm64\r\n    cd /Users/xyzhang/Documents/WorkSpace/APP/baby/ionic/platforms/ios\r\n    export IPHONEOS_DEPLOYMENT_TARGET=6.0\r\n    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\"\r\n    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk -L/Users/xyzhang/Library/Developer/Xcode/DerivedData/ionic-eevbmtxygegsnvatyiwelwwouldc/Build/Products/Debug-iphoneos -F/Users/xyzhang/Library/Developer/Xcode/DerivedData/ionic-eevbmtxygegsnvatyiwelwwouldc/Build/Products/Debug-iphoneos -Fionic/Plugins/cordova-plugin-leancloud -filelist /Users/xyzhang/Library/Developer/Xcode/DerivedData/ionic-eevbmtxygegsnvatyiwelwwouldc/Build/Intermediates/ionic.build/Debug-iphoneos/ionic.build/Objects-normal/arm64/ionic.LinkFileList -dead_strip -weak_framework CoreFoundation -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak-lSystem -ObjC -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=6.0 -framework AssetsLibrary /Users/xyzhang/Library/Developer/Xcode/DerivedData/ionic-eevbmtxygegsnvatyiwelwwouldc/Build/Products/Debug-iphoneos/libCordova.a -framework CoreGraphics -framework MobileCoreServices -framework AVOSCloud -framework SystemConfiguration -framework CoreTelephony -framework CoreLocation -licucore -Xlinker -dependency_info -Xlinker /Users/xyzhang/Library/Developer/Xcode/DerivedData/ionic-eevbmtxygegsnvatyiwelwwouldc/Build/Intermediates/ionic.build/Debug-iphoneos/ionic.build/Objects-normal/arm64/ionic_dependency_info.dat -o /Users/xyzhang/Library/Developer/Xcode/DerivedData/ionic-eevbmtxygegsnvatyiwelwwouldc/Build/Products/Debug-iphoneos/ionic.app/ionic\r\n\r\nUndefined symbols for architecture arm64:\r\n  \"_sqlite3_column_type\", referenced from:\r\n      -[LCResultSet stringForColumnIndex:] in AVOSCloud(LCResultSet.o)\r\n      -[LCResultSet dateForColumnIndex:] in AVOSCloud(LCResultSet.o)\r\n      -[LCResultSet dataForColumnIndex:] in AVOSCloud(LCResultSet.o)\r\n      -[LCResultSet dataNoCopyForColumnIndex:] in AVOSCloud(LCResultSet.o)\r\n      -[LCResultSet columnIndexIsNull:] in AVOSCloud(LCResultSet.o)\r\n      -[LCResultSet UTF8StringForColumnIndex:] in AVOSCloud(LCResultSet.o)\r\n      -[LCResultSet objectForColumnIndex:] in AVOSCloud(LCResultSet.o)\r\n      ...\r\n  \"_sqlite3_column_double\", referenced from:\r\n      -[LCResultSet doubleForColumnIndex:] in AVOSCloud(LCResultSet.o)\r\n  \"_sqlite3_column_int\", referenced from:\r\n      -[LCResultSet intForColumnIndex:] in AVOSCloud(LCResultSet.o)\r\n  \"_sqlite3_column_blob\", referenced from:\r\n      -[LCResultSet dataForColumnIndex:] in AVOSCloud(LCResultSet.o)\r\n      -[LCResultSet dataNoCopyForColumnIndex:] in AVOSCloud(LCResultSet.o)\r\n  \"_sqlite3_data_count\", referenced from:\r\n      -[LCResultSet resultDict] in AVOSCloud(LCResultSet.o)\r\n      -[LCResultSet resultDictionary] in AVOSCloud(LCResultSet.o)\r\n  \"_sqlite3_column_count\", referenced from:\r\n      -[LCResultSet columnCount] in AVOSCloud(LCResultSet.o)\r\n      -[LCResultSet columnNameToIndexMap] in AVOSCloud(LCResultSet.o)\r\n      -[LCResultSet kvcMagic:] in AVOSCloud(LCResultSet.o)\r\n      -[LCResultSet resultDictionary] in AVOSCloud(LCResultSet.o)\r\n  \"_sqlite3_create_function\", referenced from:\r\n      -[LCDatabase makeFunctionNamed:maximumArguments:withBlock:] in AVOSCloud(LCDatabase.o)\r\n  \"_sqlite3_user_data\", referenced from:\r\n      _LCDBBlockSQLiteCallBackFunction in AVOSCloud(LCDatabase.o)\r\n  \"_sqlite3_exec\", referenced from:\r\n      -[LCDatabase executeStatements:withResultBlock:] in AVOSCloud(LCDatabase.o)\r\n  \"_sqlite3_step\", referenced from:\r\n      -[LCDatabase executeUpdate:error:withArgumentsInArray:orDictionary:orVAList:] in AVOSCloud(LCDatabase.o)\r\n      -[LCResultSet nextWithError:] in AVOSCloud(LCResultSet.o)\r\n  \"_sqlite3_prepare_v2\", referenced from:\r\n      -[LCDatabase executeQuery:withArgumentsInArray:orDictionary:orVAList:] in AVOSCloud(LCDatabase.o)\r\n      -[LCDatabase executeUpdate:error:withArgumentsInArray:orDictionary:orVAList:] in AVOSCloud(LCDatabase.o)\r\n      -[LCDatabase(LCDatabaseAdditions) validateSQL:error:] in AVOSCloud(LCDatabaseAdditions.o)\r\n  \"_sqlite3_threadsafe\", referenced from:\r\n      -[LCDatabase initWithPath:] in AVOSCloud(LCDatabase.o)\r\n      +[LCDatabase isSQLiteThreadSafe] in AVOSCloud(LCDatabase.o)\r\n  \"_sqlite3_bind_null\", referenced from:\r\n      -[LCDatabase bindObject:toColumn:inStatement:] in AVOSCloud(LCDatabase.o)\r\n  \"_sqlite3_column_name\", referenced from:\r\n      -[LCResultSet columnNameToIndexMap] in AVOSCloud(LCResultSet.o)\r\n      -[LCResultSet kvcMagic:] in AVOSCloud(LCResultSet.o)\r\n      -[LCResultSet resultDictionary] in AVOSCloud(LCResultSet.o)\r\n      -[LCResultSet columnNameForIndex:] in AVOSCloud(LCResultSet.o)\r\n  \"_sqlite3_errcode\", referenced from:\r\n      -[LCDatabase lastErrorCode] in AVOSCloud(LCDatabase.o)\r\n      -[LCDatabase errorWithMessage:] in AVOSCloud(LCDatabase.o)\r\n      -[LCResultSet hasAnotherRow] in AVOSCloud(LCResultSet.o)\r\n  \"_sqlite3_bind_int\", referenced from:\r\n      -[LCDatabase bindObject:toColumn:inStatement:] in AVOSCloud(LCDatabase.o)\r\n  \"_sqlite3_free\", referenced from:\r\n      -[LCDatabase executeStatements:withResultBlock:] in AVOSCloud(LCDatabase.o)\r\n  \"_sqlite3_bind_int64\", referenced from:\r\n      -[LCDatabase bindObject:toColumn:inStatement:] in AVOSCloud(LCDatabase.o)\r\n  \"_sqlite3_open\", referenced from:\r\n      -[LCDatabase open] in AVOSCloud(LCDatabase.o)\r\n  \"_sqlite3_last_insert_rowid\", referenced from:\r\n      -[LCDatabase lastInsertRowId] in AVOSCloud(LCDatabase.o)\r\n  \"_sqlite3_column_bytes\", referenced from:\r\n      -[LCResultSet dataForColumnIndex:] in AVOSCloud(LCResultSet.o)\r\n      -[LCResultSet dataNoCopyForColumnIndex:] in AVOSCloud(LCResultSet.o)\r\n  \"_sqlite3_bind_parameter_index\", referenced from:\r\n      -[LCDatabase executeQuery:withArgumentsInArray:orDictionary:orVAList:] in AVOSCloud(LCDatabase.o)\r\n      -[LCDatabase executeUpdate:error:withArgumentsInArray:orDictionary:orVAList:] in AVOSCloud(LCDatabase.o)\r\n  \"_sqlite3_bind_blob\", referenced from:\r\n      -[LCDatabase bindObject:toColumn:inStatement:] in AVOSCloud(LCDatabase.o)\r\n  \"_sqlite3_libversion\", referenced from:\r\n      +[LCDatabase sqliteLibVersion] in AVOSCloud(LCDatabase.o)\r\n  \"_sqlite3_bind_parameter_count\", referenced from:\r\n      -[LCDatabase executeQuery:withArgumentsInArray:orDictionary:orVAList:] in AVOSCloud(LCDatabase.o)\r\n      -[LCDatabase executeUpdate:error:withArgumentsInArray:orDictionary:orVAList:] in AVOSCloud(LCDatabase.o)\r\n  \"_sqlite3_bind_double\", referenced from:\r\n      -[LCDatabase bindObject:toColumn:inStatement:] in AVOSCloud(LCDatabase.o)\r\n  \"_sqlite3_sleep\", referenced from:\r\n      _FMDBDatabaseBusyHandler in AVOSCloud(LCDatabase.o)\r\n  \"_sqlite3_close\", referenced from:\r\n      -[LCDatabase close] in AVOSCloud(LCDatabase.o)\r\n  \"_sqlite3_column_text\", referenced from:\r\n      -[LCResultSet kvcMagic:] in AVOSCloud(LCResultSet.o)\r\n      -[LCResultSet stringForColumnIndex:] in AVOSCloud(LCResultSet.o)\r\n      -[LCResultSet UTF8StringForColumnIndex:] in AVOSCloud(LCResultSet.o)\r\n  \"_sqlite3_finalize\", referenced from:\r\n      -[LCDatabase close] in AVOSCloud(LCDatabase.o)\r\n      -[LCDatabase executeQuery:withArgumentsInArray:orDictionary:orVAList:] in AVOSCloud(LCDatabase.o)\r\n      -[LCDatabase executeUpdate:error:withArgumentsInArray:orDictionary:orVAList:] in AVOSCloud(LCDatabase.o)\r\n      -[LCStatement close] in AVOSCloud(LCDatabase.o)\r\n      -[LCDatabase(LCDatabaseAdditions) validateSQL:error:] in AVOSCloud(LCDatabaseAdditions.o)\r\n  \"_sqlite3_errmsg\", referenced from:\r\n      -[LCDatabase lastErrorMessage] in AVOSCloud(LCDatabase.o)\r\n      -[LCDatabase executeUpdate:error:withArgumentsInArray:orDictionary:orVAList:] in AVOSCloud(LCDatabase.o)\r\n      -[LCResultSet nextWithError:] in AVOSCloud(LCResultSet.o)\r\n  \"_sqlite3_busy_handler\", referenced from:\r\n      -[LCDatabase setMaxBusyRetryTimeInterval:] in AVOSCloud(LCDatabase.o)\r\n  \"_sqlite3_reset\", referenced from:\r\n      -[LCDatabase executeUpdate:error:withArgumentsInArray:orDictionary:orVAList:] in AVOSCloud(LCDatabase.o)\r\n      -[LCStatement reset] in AVOSCloud(LCDatabase.o)\r\n  \"_sqlite3_changes\", referenced from:\r\n      -[LCDatabase changes] in AVOSCloud(LCDatabase.o)\r\n  \"_sqlite3_open_v2\", referenced from:\r\n      -[LCDatabase openWithFlags:] in AVOSCloud(LCDatabase.o)\r\n  \"_sqlite3_bind_text\", referenced from:\r\n      -[LCDatabase bindObject:toColumn:inStatement:] in AVOSCloud(LCDatabase.o)\r\n  \"_sqlite3_column_int64\", referenced from:\r\n      -[LCResultSet longForColumnIndex:] in AVOSCloud(LCResultSet.o)\r\n      -[LCResultSet longLongIntForColumnIndex:] in AVOSCloud(LCResultSet.o)\r\n  \"_sqlite3_next_stmt\", referenced from:\r\n      -[LCDatabase close] in AVOSCloud(LCDatabase.o)\r\nld: symbol(s) not found for architecture arm64\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n```\r\n\r\n\r\n求助呀😣\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Hybrid-Force/cordova-plugin-leancloud/issues/comments/120300308","html_url":"https://github.com/Hybrid-Force/cordova-plugin-leancloud/issues/2#issuecomment-120300308","issue_url":"https://api.github.com/repos/Hybrid-Force/cordova-plugin-leancloud/issues/2","id":120300308,"user":{"login":"BenBBear","id":7659710,"avatar_url":"https://avatars.githubusercontent.com/u/7659710?v=3","gravatar_id":"","url":"https://api.github.com/users/BenBBear","html_url":"https://github.com/BenBBear","followers_url":"https://api.github.com/users/BenBBear/followers","following_url":"https://api.github.com/users/BenBBear/following{/other_user}","gists_url":"https://api.github.com/users/BenBBear/gists{/gist_id}","starred_url":"https://api.github.com/users/BenBBear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenBBear/subscriptions","organizations_url":"https://api.github.com/users/BenBBear/orgs","repos_url":"https://api.github.com/users/BenBBear/repos","events_url":"https://api.github.com/users/BenBBear/events{/privacy}","received_events_url":"https://api.github.com/users/BenBBear/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T08:34:39Z","updated_at":"2015-07-10T08:34:39Z","body":"添加了sqlite3.0.dylib， 之后通过了"}}