[Interest] [qt-iOS] I can't deploy a folder into app bundle since qt5.3.1

Gustavsen Richard Richard.Gustavsen at digia.com
Mon Aug 25 09:30:10 CEST 2014


Did this work in Qt-5.3.0? Try to use an absolute path for QMAKE_BUNDLE_RESOURCES (if you currently use a relative path). Using a relative path will be relative to the source dir, not the build dir, which is a difference to Qt-5.3.0.

If this doesn't help, check if the folder was actually copied into the bundle. You can do this by opening the Xcode project (found in the build dir) in Xcode, right click on generated app (found under the "Products" folder in the project tree), click "show in finder". Then right-click on the app and select "show package contents".


Fra: interest-bounces+richard.gustavsen=digia.com at qt-project.org [interest-bounces+richard.gustavsen=digia.com at qt-project.org] på vegne av Liang Jian [jianliang79 at gmail.com]
Sendt: 23. august 2014 03:04
Til: interest at qt-project.org
Emne: [Interest] [qt-iOS] I can't deploy a folder into app bundle since qt5.3.1

    Hello everyone, I am writing a mobile app under iOS, I can deploy a file to app bundle using qtcreator but I can't deploy a folder into app bundle since qt 5.3.1.
    If I put some thing like the following into my *.pro file:

    deployment.files = <path/to/a/folder>
    QMAKE_BUNDLE_DATA += deployment

    Build will fail with the following error:

/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile.DebugDevice
2014-08-20 09:50:05.538 xcodebuild[3471:1007] [MT] DVTAssertions: ASSERTION FAILURE in /SourceCache/DVTFrameworks/DVTFrameworks-5074/DVTFoundation/FilePaths/DVTFilePath.m:778
Details: fsrep is relative ('../video360/ios/translation') parentPath must not be nil but it is.
Object: <DVTFilePath>
Method: +_filePathForParent:fileSystemRepresentation:length:allowCreation:
Thread: <NSThread: 0x7fb843d10110>

{name = (null), num = 1}

Hints: None
0 0x000000010b0d9ac1 -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
1 0x000000010b0d9519 _DVTAssertionHandler (in DVTFoundation)
2 0x000000010b0d97ff _DVTAssertionFailureHandler (in DVTFoundation)
3 0x000000010af4d8f3 +[DVTFilePath _filePathForParent:fileSystemRepresentation:length:allowCreation:] (in DVTFoundation)
4 0x000000010af4d522 +[DVTFilePath _filePathForParent:pathString:] (in DVTFoundation)
5 0x000000010af4d2a6 +[DVTFilePath filePathForPathString:] (in DVTFoundation)
6 0x000000010c90c093 +[PBXFileType fileTypeForPath:getExtraFileProperties:] (in DevToolsCore)
7 0x000000010c8b4a62 -[PBXFileReference _getEffectiveFileType:fileProperties:] (in DevToolsCore)
8 0x000000010c8b4beb -[PBXFileReference fileType] (in DevToolsCore)
9 0x000000010c8b72ff -[PBXFileReference awakeFromPListUnarchiver:] (in DevToolsCore)
10 0x00007fff910aab80 -[NSArray makeObjectsPerformSelector:withObject:] (in CoreFoundation)
11 0x000000010c8c1a9b -[PBXPListUnarchiver decodeRootObject] (in DevToolsCore)
12 0x000000010c88f7fc +[PBXProject projectWithFile:errorHandler:readOnly:] (in DevToolsCore)
13 0x000000010ca9b63f -[Xcode3Project initWithFilePath:extension:workspace:error:] (in DevToolsCore)
14 0x000000010b7b5493 __73+[IDEContainer retainedContainerAtFilePath:fileDataType:workspace:error:]_block_invoke_2 (in IDEFoundation)
15 0x00007fff8ba0d28d _dispatch_client_callout (in libdispatch.dylib)
16 0x00007fff8ba0e146 _dispatch_barrier_sync_f_invoke (in libdispatch.dylib)
17 0x000000010af4a5cf -[DVTDispatchLock performLockedBlock:] (in DVTFoundation)
18 0x000000010b7b4eb6 __73+[IDEContainer retainedContainerAtFilePath:fileDataType:workspace:error:]_block_invoke (in IDEFoundation)
19 0x000000010b060255 -[DVTModelObjectGraph performBlockCoalescingModelChanges:] (in DVTFoundation)
20 0x000000010b50329a +[IDEContainer retainedContainerAtFilePath:fileDataType:workspace:error:] (in IDEFoundation)
21 0x000000010b50e898 -[IDEWorkspace _configureWrappedWorkspaceWithError:] (in IDEFoundation)
22 0x000000010b631c04 -[IDEWorkspace _setContainerFilePath:upgradeToWorkspace:error:] (in IDEFoundation)
23 0x000000010b5027ea +[IDEContainer retainedWrappedWorkspaceForContainerAtFilePath:fileDataType:error:] (in IDEFoundation)
24 0x000000010bbb79a2 -[Xcode3CommandLineBuildTool _resolveInputOptionsWithTimingSection:] (in Xcode3Core)
25 0x000000010bbc5190 -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
26 0x000000010af4198a (in xcodebuild)
27 0x00007fff84d0a5fd start (in libdyld.dylib)
28 0x0000000000000006
Build settings from command line:
SDKROOT = iphoneos7.1

     I use qt-5.3.1, qtcreator 3.1.2(and 3.2.0), OSX 10.9, xcode 5.1.1
     Does anybody also encounter this issue ? please help, thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140825/99cd6818/attachment.html>

More information about the Interest mailing list