|
POST
|
I have moved to the new version of AppStudio 4.3.193 and can't get my build to work. I have installed all of the prerequisites and everything. I keep getting the same error when trying to do a local make for an IOS device. I am doing this on a mac with Big Sur on it. I installed qt 5.13.1, and QtIFW-3.0.6. I have xcode 12.2 and set the simulator in xcode to ios 14.0. The advanced configuration in QT points to the correct version of qt. I can't figure out what I am missing. I get the following build error text nfo: creating stash file /Users/mattkajewski/Documents/IOS_Builds/Intermediate/iOS/.qmake.stash Project ERROR: Cannot run target compiler '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++'. Output: =================== Apple clang version 12.0.0 (clang-1200.0.32.27) Target: x86_64-apple-darwin20.1.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/c++/v1" "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple x86_64-apple-ios14.2.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -Werror=implicit-function-declaration -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name - -mrelocation-model pic -pic-level 2 -mthread-model posix -mframe-pointer=all -fno-strict-return -masm-verbose -munwind-tables -target-sdk-version=14.2 -target-cpu core2 -dwarf-column-info -debugger-tuning=lldb -target-linker-version 609.6 -v -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk -stdlib=libc++ -internal-isystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1 -internal-isystem /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/local/include -internal-isystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include -internal-externc-isystem /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include -internal-externc-isystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-c99-designator -Wno-final-dtor-non-final-class -Wno-extra-semi-stmt -Wno-misleading-indentation -Wno-quoted-include-in-framework-header -Wno-implicit-fallthrough -Wno-enum-enum-conversion -Wno-enum-float-conversion -fdeprecated-macro -fdebug-compilation-dir /Users/mattkajewski/Qt5.13.1/5.13.1/ios/mkspecs/features -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -fstack-check -mdarwin-stkchk-strong-link -fblocks -fencode-extended-block-signature -fregister-global-dtors-with-atexit -fgnuc-version=4.2.1 -fobjc-runtime=ios-14.2.0 -fcxx-exceptions -fexceptions -fmax-type-align=16 -fdiagnostics-show-option -o /var/folders/8x/zp84b29j1tg1v38lln45qdl40000gq/T/--2c6a47.o -x c++ - clang -cc1 version 12.0.0 (clang-1200.0.32.27) default target x86_64-apple-darwin20.1.0 ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/local/include" ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/Library/Frameworks" #include "..." search starts here: #include <...> search starts here: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/System/Library/Frameworks (framework directory) End of search list. "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld" -demangle -lto_library /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib -no_deduplicate -dynamic -dylib -arch x86_64 -platform_version ios 14.2.0 14.2 -single_module -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk -o /dev/null -v /var/folders/8x/zp84b29j1tg1v38lln45qdl40000gq/T/--2c6a47.o -lc++ -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/lib/darwin/libclang_rt.ios.a @(#)PROGRAM:ld PROJECT:ld64-609.7 BUILD 18:10:07 Oct 19 2020 configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em Library search paths: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/lib Framework search paths: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/System/Library/Frameworks/ ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/lib/libc++.tbd, missing required architecture x86_64 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/lib/libc++.tbd (4 slices) ld: building for iOS, but linking in object file built for iOS Simulator, file '/var/folders/8x/zp84b29j1tg1v38lln45qdl40000gq/T/--2c6a47.o' for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) =================== Maybe you forgot to setup the environment? Build Failed.
... View more
12-08-2020
08:22 AM
|
0
|
2
|
1976
|
|
POST
|
The actual cause of me not being able to delete my MMPK folder after delete was because I had one of the gdbs held in memory. I thought it was from the unregister task from above, but it was actually a variable that pointed to the GDB in my sync task. After my sync task was complete, I cleared the variable and was able to delete the entire MMPK folder.
... View more
07-27-2020
02:20 PM
|
0
|
0
|
1043
|
|
POST
|
to solve part of this I change the sync model per layer and only create replicas that I will later sync. However, when cleaning up, is there a way to detect when the replica has been unregistered so that I can then delete the folder off the machine?
unRegisterGeoDatabases() //I think this fails because the above unregister has the folder locked.
deleteMMPKFolders()
... View more
07-27-2020
12:59 PM
|
0
|
1
|
1043
|
|
POST
|
I am taking my web map offline that has 5 feature layers. I use the offline map task to take the map offline with default map parameters that are per layer by default. Are you saying to go into the individual layers in the paramerter overrides and set the sync model of the layers I don't care about to SyncModelNone? Is there a more efficient way to set the sync model on individual layers without the override on the original default parameters? offlineMapTask.createDefaultGenerateOfflineMapParameters(exportGeometry.extent) OfflineMapTask { id: offlineMapTask onlineMap: app.mainMapView.map
onCreateDefaultGenerateOfflineMapParametersStatusChanged: {
parameters = createDefaultGenerateOfflineMapParametersResult; offlineMapTask.createGenerateOfflineMapParameterOverrides(parameters) .... }
onCreateGenerateOfflineMapParameterOverridesStatusChanged:{ if (createGenerateOfflineMapParameterOverridesStatus === Enums.TaskStatusCompleted) {
var geodatabaseParamOverrides = overrides.generateGeodatabaseParameters; geodatabaseParamOverrides.value(geodatabaseParamOverrides.keyAt(0)).syncModel = Enums.SyncModelLayer;
geodatabaseParamOverrides.value(geodatabaseParamOverrides.keyAt(1)).syncModel = Enums.SyncModelNone;
geodatabaseParamOverrides.value(geodatabaseParamOverrides.keyAt(2)).syncModel = Enums.SyncModelNone;
geodatabaseParamOverrides.value(geodatabaseParamOverrides.keyAt(3)).syncModel = Enums.SyncModelNone;
geodatabaseParamOverrides.value(geodatabaseParamOverrides.keyAt(4)).syncModel = Enums.SyncModelNone; ....... } } } createGenerateOfflineMapParameterOverrides
... View more
07-27-2020
07:24 AM
|
0
|
1
|
1348
|
|
POST
|
I can seem to get the unregisterGeodatabase to work? I have about 5 features services that I take offline. I only sync one of the geodatabases, which also automatically unregisters it (it appears). The other 4 I am attempting to unregister in code and it doesn't seem to work? GeodatabaseSyncTask {
id: geodatabaseSyncTask
url: "https://mypath/FeatureServer"
}
function unRegisterGeoDatabases() {
try {
while(GDBList.length > 0) {
var gdb = aGDBList.pop()
if (gdb)
{
geodatabaseSyncTask.unregisterGeodatabase(gdb);
}
}
} catch (err) {
console.log("*****************ERROR FAIL****************");
console.log("SurveyApp.qml - ERROR unRegisterGeoDatabases :", err);
console.log("*******************************************");
}
}
//Called after the sync? Do I need to do something like sync?
unRegisterGeoDatabases()
... View more
07-24-2020
01:19 PM
|
0
|
3
|
1097
|
|
POST
|
I am attempting to sync my offline geodatabase of a Feature Layer for the first time using these steps Sync offline edits—ArcGIS Runtime SDK for Qt | ArcGIS for Developers I have made sure my changes are in my offline .geodatabase file on my machine, but after I sync my changes they don't appear to be syncing. My feature layer has 3 layers in it. When I set the geodatabase to sync, do I need to specify the layers to sync or something? Shouldn't it sync everything in the feature service. The changes don't seem to be uploading? SyncGeodatabaseParameters {
id: syncParameters
// only sync the 1 layer
layerOptions: [
SyncLayerOption {
layerId: app.layerId //My feature service with 3 layers, shouldn't it sync everything.
}
]
// push up edits
geodatabaseSyncDirection: Enums.SyncDirectionUpload
}
GeodatabaseSyncTask {
id: geodatabaseSyncTask
url: "myURL/FeatureServer"
property var generateJob
property var syncJob
function executeSync() {
// execute the asynchronous task and obtain the job
//syncOverrideGDB is not null and is the feature service with 3 layers
syncJob = syncGeodatabase(syncParameters, syncOverrideGDB);
// check if the job is valid
if (syncJob) {
// show the sync window
syncWindow.visible = true;
// connect to the job's status changed signal to know once it is done
syncJob.jobStatusChanged.connect(updateSyncJobStatus);
// start the job
syncJob.start();
} else {
// a valid job was not obtained, so show an error
syncWindow.visible = true;
statusText = "Sync failed";
syncWindow.hideWindow(5000);
}
}
function updateSyncJobStatus() {
switch(syncJob.jobStatus) {
case Enums.JobStatusFailed:
statusText = "Sync failed";
syncWindow.hideWindow(5000);
break;
case Enums.JobStatusNotStarted:
statusText = "Job not started";
break;
case Enums.JobStatusPaused:
statusText = "Job paused";
break;
case Enums.JobStatusStarted:
statusText = "In progress...";
break;
case Enums.JobStatusSucceeded:
statusText = "Complete";
syncWindow.hideWindow(1500);
break;
default:
break;
}
}
}
... View more
07-21-2020
09:55 AM
|
0
|
3
|
1391
|
|
POST
|
I continue to work with Gary on this but wanted to give an update and ask for some help. We discovered that at least in my case that through creating the replica using ArcGIS Rest Services that creating my offline replicas is twice as fast when I select the Synchronous option and NOT the async option. Is there a way for me to do this in code so that the create replica process works Synchronously? Also, the number of columns in my table is also making my offline create process very slow, but I need the information in those columns (100+ columns). Any ideas on how to get those columns offline without making, what appears to be a slow schema create process.
... View more
07-17-2020
08:10 AM
|
0
|
0
|
642
|
|
POST
|
Are resources look just fine. And we ran the analysis and reindex and nothing changed. We will now try and get you the SQL Server trace file so we can see what is going on, where should I send it? This is so strange, it must be in the packaging of the .geodatabase file, as i watch my offline map package folder being created, the tile files are created very quickly, then there is about a minute pause until the .geodatabase files then start to appear. I think we are getting closer to figuring this out.
... View more
07-14-2020
01:46 PM
|
0
|
1
|
642
|
|
POST
|
Gary, this is indeed hosted on enterprise 10.7.1 but the data is in sql database and not the esri data store. I can get this to take almost two minutes for one or 1000 features. It doesn’t matter. The polygons are not that complex, and when I do individual feature layers on my web map one by one it doesn’t matter. I even created a new web map and added individual feature layers to check each one, but all did same thing and were 3 mi a minimum. I run the simple code to take my web map offline and even provide an envelope with scale for the basemap and default parameters. The basemap by itself is very fast and not the problem. this must have something to do with the rdbms being used instead of the data store. Which we do to update our date from other systems and still have it hosted and readily available. amy suggestions would be helpful as the speed off going offline is the only thing holding our implementation of ESRI app studio app from being utilized company wide. I have to figure this out. please assist.
... View more
07-13-2020
05:51 PM
|
0
|
3
|
2754
|
|
POST
|
Maybe this is a clue that can help us solve this issue. when I set the geometry to null on the layers it is fast, but of course no records are returned. But that seems to be the bottleneck. If this helps at all? geodatabaseParamOverrides.value(geodatabaseParamOverrides.keyAt(0)).extent = null; geodatabaseParamOverrides.value(geodatabaseParamOverrides.keyAt(1)).extent = null; geodatabaseParamOverrides.value(geodatabaseParamOverrides.keyAt(2)).extent = null; geodatabaseParamOverrides.value(geodatabaseParamOverrides.keyAt(3)).extent = null; geodatabaseParamOverrides.value(geodatabaseParamOverrides.keyAt(4)).extent = null;
... View more
07-13-2020
11:32 AM
|
0
|
5
|
2754
|
|
POST
|
Luke, My services are in our company ArcGIS Enterprise Portal. I changed the SyncModel for all of my layers like this for each of them. geodatabaseParamOverrides.value(geodatabaseParamOverrides.keyAt(0)).syncModel = Enums.SyncModelNone; That did not increase my speed at all. I set the definition query to only have one record as well for each layer. Matt
... View more
07-13-2020
07:46 AM
|
0
|
0
|
2754
|
|
POST
|
I have tried everything I can think of, including what you have above. are they all from the same Feature Service (no) what kind of definition query are you using (the definition query set on the WebMap for each layer) what options are you using for creating the replica (e.g. sync model, attachments directions, schema only etc.) parameters.maxScale = zoomLevels[maxLevel] parameters.minScale = zoomLevels[minLevel] parameters.attachmentSyncDirection = Enums.AttachmentSyncDirectionNone; parameters.returnLayerAttachmentOption = Enums.ReturnLayerAttachmentOptionNone parameters.returnSchemaOnlyForEditableLayers = false; is this an editing workflow (no) I have also tried to remove the definition query from the layeroptions on each of my 5 layers. Then remove the useGeometry too. That didn't seem to do anything either. layerOptions = geodatabaseParamOverrides.value(geodatabaseParamOverrides.keyAt(0)).layerOptions;
for (i = 0; i < layerOptions.length; i++) {
layerOption.whereClause = "";
layerOption.queryOption = Enums.GenerateLayerQueryOptionAll ;
layerOption.useGeometry = false
} Again, I turned off all 5 of my layers with this and it is fast, but when turning any one of them on, it becomes slow again. My tiles are not the speed issue, it is my layers, again this removes them in the overried section and without these options it is qucik. geodatabaseParamOverrides.value(geodatabaseParamOverrides.keyAt(0)).layerOptions = [];
geodatabaseParamOverrides.value(geodatabaseParamOverrides.keyAt(1)).layerOptions = [];
geodatabaseParamOverrides.value(geodatabaseParamOverrides.keyAt(2)).layerOptions = [];
geodatabaseParamOverrides.value(geodatabaseParamOverrides.keyAt(3)).layerOptions = [];
geodatabaseParamOverrides.value(geodatabaseParamOverrides.keyAt(4)).layerOptions = [];
... View more
07-10-2020
09:41 AM
|
0
|
2
|
2754
|
|
POST
|
I have a product in production that lets my users take a subset of the data offline using generateOfflineMap. This process say, for my web map with 5 feature layers (filtered using definition query) and the tiled basemaps (filtered by area and scale considerations) takes almost 2 minutes to download what says 4.5mb in the estimate. This is unacceptable to my users. So I decided to dig into this and see why it takes so long. I took the overrides function so that I can remove the feature layers and tiled layers to see what is taking so long. I assumed the basemap was what was taking so long, but to my surprise I removed all of the layers using the override functions and the download with the basemaps took under 10 secs, which I thought was very reasonable. So I realize it is the layers, so i turn them on one at a time (each by themselves), and that doesn't improve. It only improves when the are are all off. What about these layers on my webmap is making them take so long to download? Each layer has a definition query that might break them down to include only 1 feature? So it isn't a data thing as far as I can tell. What am I missing. Matt also, I used this to remove some layers and get overrides to work. But this just helped in breaking down the problem. Hoping I can use the overrides to speed up by removing something or checking something. Generate offline map (overrides) | ArcGIS for Developers
... View more
07-09-2020
10:33 AM
|
0
|
12
|
3574
|
|
POST
|
I am trying to zoom to the extent of a layer that has definitionExpression on it. I cannot get it to zoom to anything but the world view. I want to setViewpontGeometry(queryLayer.fullExtent), but this doesn't seem to work. Do I have to build a view point manually? Connections {
target: map
onOperationalLayersChanged: {
identifyQueryLayer()
queryLayer.definitionExpression = app.definitionQuery
//This doesn't work?
mapView.setViewpointGeometry(queryLayer.fullExtent)
//Do I have to build a viewpoint?
//mapView.setViewpoint(newViewPoint);
}
}
... View more
05-18-2020
07:58 AM
|
0
|
1
|
695
|
|
POST
|
I tried using both ways and neither worked. I feel like I am missing something, but I cant find an example of this anywhere. I need to be able to do this as I just want features not to be visible and not remove them from the definition query. Does anyone know of some code examples of this anywhere? I looked through the entire qt samples and a quick internet search and I came up with nothing. For now I have to remove the definition query before I search and refresh my layer, then add the query back in after the search returns all the features, this is suboptimal at best.
... View more
04-23-2020
11:11 AM
|
0
|
1
|
702
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-23-2018 06:49 AM | |
| 1 | 08-02-2023 08:28 AM | |
| 1 | 01-03-2020 10:54 AM | |
| 1 | 11-30-2017 06:41 AM | |
| 1 | 08-20-2018 01:10 PM |
| Online Status |
Offline
|
| Date Last Visited |
10-22-2025
04:33 AM
|