Post not yet marked as solved
Full crash log attached:
Crash log (.ips file)
Post not yet marked as solved
Rebuilt the toolbar in Xcode 13.4 but flexible space toolbar item does not have any width, so replaced with 3 regular spaces to give apperance as shown below.
When run on Catalina the toolbar appears as in the first image.
XCode 12.3 issue on Catalina appeared after deleting DerivedData Folder for project. Closing and re-opening XCode project, and cleaning build folder eventually worked.
Post not yet marked as solved
Same problem with iOS 12.5.5 on iPhone 6
Post not yet marked as solved
This problem often recurs, even with a new account and using the bash shell. Closing and re-opening Xcode seems to fix it.
Post not yet marked as solved
I think the answer is the that System icons/images are SFSymbols, which are only supported for iOS 13 or later. Doco recommends exporting as SVG and bundling with app to use in older versions using SFSymbols app
Post not yet marked as solved
Some additional data - Xcode debug windows shows CaptionEdit[1137:31772] Could not load the "gearshape.fill" image referenced from a nib in the bundle with identifier "com.AlekaConsulting.CaptionEdit" and "CaptionEdit[1137:31772] libMobileGestalt MobileGestalt.c:890: MGIsDeviceOneOfType is not supported on this platform." when images not shown
Post not yet marked as solved
Even though the options are greyed out, clicking on the download (down arrow) icon shows a screen "Xcode is trying to install Apple-provided software" and prompts of credentials to allow this. The simulator download then proceeds and the greyed out down arrow is eventually replaced by a blue tick, and simulators for devices using the downlooed iOS appear in options.
Post not yet marked as solved
I cannot install from XCode Preferences as all the simulators listed are greyed out. Will command line installation be any different?
Post not yet marked as solved
I'm using XCode 12.3 so the highest iOS version is 14.3 rather than 15.4 but the procedure above worked OK - thanks
Post not yet marked as solved
Some .Net code I use for this purpose is:
using (WebClient client2 = new WebClient())
{
client2.UploadFile("https://captionpro.com.au:444/AlekaConsulting/License/Upload.aspx", sTempFile);
}
return false;
I notice a number of other people having problems uploading to a web site use a server-side script. Can I make use of Upload.aspx?
Post not yet marked as solved
I have now got creation of a text file on a web server from a string working using the following code:
(void) UploadFileContent: (NSString *) fileContent{
// URL for script file on server in folder where file will be created
NSString *urlString = @"https://xxxx/xxxx/Upload.aspx"
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
[request setURL:[NSURL URLWithString:urlString]];
[request setHTTPMethod:@"POST"];
NSString *boundary = @"---------------------------14737809831466499882746641449";
NSString *contentType = [NSString stringWithFormat:@"multipart/form-data; boundary=%@",boundary];
[request addValue:contentType forHTTPHeaderField: @"Content-Type"];
NSMutableData *body = [NSMutableData data];
[body appendData:[[NSString stringWithFormat:@"\r\n--%@\r\n",boundary] dataUsingEncoding:NSUTF8StringEncoding]];
// UploadedFile.txt is name of file to be created
[body appendData:[@"Content-Disposition: form-data; name=\"userfile\"; filename=\"UploadedFile.txt\"\r\n" dataUsingEncoding:NSUTF8StringEncoding]];
[body appendData:[@"Content-Type: application/octet-stream\r\n\r\n" dataUsingEncoding:NSUTF8StringEncoding]];
[body appendData:[[NSString stringWithString:fileContent] dataUsingEncoding:NSUTF8StringEncoding]];
[body appendData:[[NSString stringWithFormat:@"\r\n--%@--\r\n",boundary] dataUsingEncoding:NSUTF8StringEncoding]];
// set the body of the post to the request
[request setHTTPBody:body];
// connect to the web
NSData *returnData = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil];
NSString *returnString = [[NSString alloc] initWithData:returnData encoding:NSUTF8StringEncoding];
}
The Upload.aspx file is
%@ Import Namespace="System"%
%@ Import Namespace="System.IO"%
%@ Import Namespace="System.Net"%
%@ Import NameSpace="System.Web"%
Script language="C#" runat=server
void Page_Load(object sender, EventArgs e) {
foreach(string f in Request.Files.AllKeys) {
HttpPostedFile file = Request.Files[f];
// FolderPath = path to folder containing file to be created eg C:\inetpub\wwwroot\***\***\***\
string sFilePath = @"FolderPath" + file.FileName;
if(System.IO.File.Exists(sFilePath)) System.IO.File.Delete(sFilePath);
file.SaveAs(sFilePath);
}
}
/Script
html
body
p Upload complete. /p
/body
/html
Post not yet marked as solved
Thanks Quinn. I checked the IIS server failed request log (which contains a lot of detail) and noticed that the request used anonymous authentication. It seems likely that the server would block anonymous users from anything but reading from a web page as a security measure, which is why I can read from a file in the folder but not write a new one in it. If this is the case, how do I add authentication to the request?
Post not yet marked as solved
The .plist file is contained in a hidden folder as Users/username/library/preferences/bundle identifier.plist. Hidden folders and files can be displayed in Finder by typing cmd [apple symbol]-shift- period[.]. The same command repeated hides them, providing Finder is not displaying items in a hidden folder.
Finder search does not appear to display items in hidden folders even if hidden items are shown in the display.