我正在构建我的第一个nativescript项目,并且一切似乎在android上都可以正常工作。现在,我正在尝试为ios构建项目,并且无法在REAL设备上运行它。在ios模拟器上,它运行得很好。
现在,我接受了一个空的新项目进行测试,并且存在相同的问题。
我正在osx机器上运行nativescript补充。
tns --version:5.0.1
节点-v v10.13.0
所以我要做的是:
模板:“空白”
项目名称:“ mobileApp”
还勾选了“自动设置应用ID”,这是默认设置
然后单击“创建项目”按钮
创建项目后,我编辑了应用程序标识符:“ org.nativescript.mobileApp423142542514523523462”(使其唯一)。
接下来,我进入“设备”部分,选择了通过USB连接的REAL ios设备,然后单击“齿轮”以为此设备“自动生成证书”(我正在使用Apple FREE帐户)。
之后,我单击“在设备上运行”(云构建)。我在日志上看到的构建仅是成功警告,是:“ ld:未找到自动链接框架CoreServices”(在日志上带有黄色警告图标)。在构建时,我会看到类似这样的消息:
(CLI)**导出成功**
构建步骤完成。
下载步骤开始。
下载步骤完成。
(CLI)正在设备上安装...
,最后我看到错误:
(CLI)无法在设备上应用更改:08049a7cf2271dbb1eacd935968c273a8dd8600e。错误是:无法在标识符为08049a7cf2271dbb1eacd935968c273a8dd8600e的设备上安装/Users/.../mobileApp/.cloud/ios/device/mobileApp.ipa。错误是:无法安装应用程序。
那么还有没有其他人看到过此事或知道如何解决?
下一步,我什么都没改变,但更改为本地版本,并收到以下错误:
(CLI)无法在设备上应用更改:08049a7cf2271dbb1eacd935968c273a8dd8600e。错误是:ENOENT:没有这样的文件或目录,scandir'/Users/.../Library/MobileDevice/Provisioning Profiles/'。
查看该路径,并且“ MobileDevice”文件夹不存在。 现在,如果我手动创建丢失的文件夹并重新运行本地版本,则会收到错误:
[18-12-08 12:43:30.260](CLI)跳过准备。
[18-12-08 12:43:30.260](CLI)建设项目...
[18-12-08 12:43:31.053](CLI)Xcode要求在构建设备时指定团队ID。
[18-12-08 12:43:31.061](CLI)您可以通过在应用程序的App_Resources文件夹中的build.xcconfig文件中设置DEVELOPMENT_TEAM设置,或使用--teamId选项来指定团队ID。调用运行,调试或实时同步命令时。
[18-12-08 12:43:31.513](CLI)Xcode构建...
[18-12-08 12:43:34.779](CLI)2018-12-08 12:43:34.777 xcodebuild [64353:104753258] [MT] DVTAssertions:/Library/Caches/com.apple中的断言失败.xbs / Sources / IDEXcode3ProjectSupport / IDEXcode3ProjectSupport-14460.26 / Xcode3Core / LegacyProjects / Frameworks / DevToolsCore / DevToolsCore / RuntimeSupport / MacroExpansion / XCMacroExpansionExtensions.mm:94
[18-12-08 12:43:34.779](CLI)详细信息:断言失败:[value isKindOfClass:[NSString class]] || [值isKindOfClass:[NSArray类]]
[18-12-08 12:43:34.779](CLI)对象:
[18-12-08 12:43:34.779](CLI)方法:-_xc_setValue:forMacroName:conditionSet:errorHandler:
[18-12-08 12:43:34.779](CLI)线程:{number = 1,name = main}
[18-12-08 12:43:34.779](CLI)提示:
[18-12-08 12:43:34.779](CLI)回溯:
[18-12-08 12:43:34.779](CLI)0-[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:](在DVTFoundation中)
[18-12-08 12:43:34.779](CLI)1 _DVTAssertionHandler(在DVTFoundation中)
[18-12-08 12:43:34.779](CLI)2 _DVTAssertionFailureHandler(在DVTFoundation中)
[18-12-08 12:43:34.779](CLI)3 _DVTAssertionFailureHandler(在DVTFoundation中)
[18-12-08 12:43:34.779](CLI)4-[DVTMacroDefinitionTable(XCMacroExpansionExtensions)_xc_setValue:forMacroName:conditionSet:errorHandler:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)5-[DVTMacroDefinitionTable(XCMacroExpansionExtensions)_xc_setValue:forMacroName:errorHandler:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)6 __108- [DVTMacroDefinitionTable(XCMacroExpansionExtensions)xc_setMacroNamesAndValuesFromDictionary:errorHandler:] _ block_invoke(在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)7-[__ NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:](在CoreFoundation中)
[18-12-08 12:43:34.779](CLI)8-[DVTMacroDefinitionTable(XCMacroExpansionExtensions)xc_setMacroNamesAndValuesFromDictionary:errorHandler:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)9 + [DVTMacroDefinitionTable(XCProjectArchivingExtensions)xc_macroDefinitionTableFromDictionaryRepresentationForProjectArchiving:usingPropertyDefinitionsFromSpecificationDomain:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)10-[PBXBuildStyle _setBuildSettings:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)11-[PBXUnarchivingBinding readValueForObject:fromPListUnarchiver:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)12-[PBXObject _unarchiveValuesForArchiveMask:fromPListUnarchiver:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)13-[PBXObject readFromPListUnarchiver:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)14-[PBXBuildStyle readFromPListUnarchiver:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)15-[PBXPListUnarchiver _unarchiveObjectWithGlobalIDHexString:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)16-[PBXPListUnarchiver _decodeMutableObjectArrayFromPListArray:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)17-[PBXPListUnarchiver encodeMutableObjectArrayForKey:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)18-[PBXUnarchivingBinding readValueForObject:fromPListUnarchiver:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)19-[PBXObject _unarchiveValuesForArchiveMask:fromPListUnarchiver:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)20-[PBXObject readFromPListUnarchiver:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)21-[PBXPListUnarchiver _unarchiveObjectWithGlobalIDHexString:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)22-[PBXPListUnarchiver encodeObjectForKey:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)23-[PBXUnarchivingBinding readValueForObject:fromPListUnarchiver:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)24-[PBXObject _unarchiveValuesForArchiveMask:fromPListUnarchiver:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)25-[PBXObject readFromPListUnarchiver:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)26-[PBXPListUnarchiver _unarchiveObjectWithGlobalIDHexString:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)27-[PBXPListUnarchiver _decodeMutableObjectArrayFromPListArray:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)28-[PBXPListUnarchiver encodeMutableObjectArrayForKey:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)29-[PBXUnarchivingBinding readValueForObject:fromPListUnarchiver:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)30-[PBXObject _unarchiveValuesForArchiveMask:fromPListUnarchiver:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)31-[PBXObject readFromPListUnarchiver:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)32-[PBXProject readFromPListUnarchiver:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)33-[PBXPListUnarchiver _unarchiveObjectWithGlobalIDHexString:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)34-[PBXPListUnarchiver encodeRootObject](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)35 + [PBXProject projectWithFile:errorHandler:readOnly:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)36-[Xcode3Project initWithFilePath:extension:workspace:options:error:](在DevToolsCore中)
[18-12-08 12:43:34.779](CLI)37 __82 + [IDEContainer _retainedContainerAtFilePath:fileDataType:workspace:options:error:] _ block_invoke_2(在IDEFoundation中)
[18-12-08 12:43:34.779](CLI)38 _dispatch_client_callout(在libdispatch.dylib中)
[18-12-08 12:43:34.779](CLI)39 _dispatch_queue_barrier_sync_invoke_and_complete(在libdispatch.dylib中)
[18-12-08 12:43:34.779](CLI)40 DVTDispatchBarrierSync(在DVTFoundation中)
[18-12-08 12:43:34.779](CLI)41-[DVTDispatchLock performLockedBlock:](在DVTFoundation中)
[18-12-08 12:43:34.779](CLI)42 __82 + [IDEContainer _retainedContainerAtFilePath:fileDataType:workspace:options:error:] _ block_invoke(在IDEFoundation中)
[18-12-08 12:43:34.779](CLI)43 __58- [DVTModelObjectGraph performBlockCoalescingModelChanges:] _ block_invoke(在DVTFoundation中)
[18-12-08 12:43:34.779](CLI)44-[DVTModelGraphTransactionScope performTransaction:](在DVTFoundation中)
[18-12-08 12:43:34.779](CLI)45-[DVTModelObjectGraph performBlockCoalescingModelChanges:](在DVTFoundation中)
[18-12-08 12:43:34.779](CLI)46 + [IDEContainer _retainedContainerAtFilePath:fileDataType:workspace:options:error:](在IDEFoundation中)
[18-12-08 12:43:34.779](CLI)47 + [IDEContainertainedContainerAtFilePath:fileDataType:workspace:error:](在IDEFoundation中)
[18-12-08 12:43:34.779](CLI)48-[IDEWorkspace _configureWrappedWorkspaceWithError:](在IDEFoundation中)
[18-12-08 12:43:34.779](CLI)49-[IDEWorkspace _setContainerFilePath:upgradeToWorkspace:error:](在IDEFoundation中)
[18-12-08 12:43:34.779](CLI)50 + [IDEContainertainedWrappedWorkspaceForContainerAtFilePath:fileDataType:error:](在IDEFoundation中)
[18-12-08 12:43:34.779](CLI)51-[Xcode3CommandLineBuildTool _resolveInputOptionsWithTimingSection:](在Xcode3Core中)
[18-12-08 12:43:34.779](CLI)52-[Xcode3CommandLineBuildTool运行](在Xcode3Core中)
[18-12-08 12:43:34.779](CLI)53 main(在xcodebuild中)
[18-12-08 12:43:34.779](CLI)54开始(在libdyld.dylib中)
任何帮助将不胜感激。谢谢
答案 0 :(得分:0)
应用程序希望在以下位置下载文件
用户/.../图书馆/ MobileDevice /配置文件/
但该文件不存在(这是ENOENT的意思)。因此,您要么必须创建预期的目录结构,要么对应用程序进行配置,以使其在正确的目录中显示。