Open giluna opened 8 years ago
As I said in my reply to your Stack Overflow copy of this question:
This code compiles without incident for me in Xcode 8.0 (8A218a). But if this isn't working for you, I'd suggest splitting the line up, for example
let values = [localization.localization_object_id!, ..., localization.direction_nw_desc!] let isInserted = sharedInstance.database!.executeUpdate( "INSERT INTO localizations (...) " + "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", withArgumentsIn: values)
I'm using FMDB with Swift 3. Everything worked fine on Swift 2 but after making the Swift upgrade I'm getting: "Command failed due to signal: Killed: 9"
After investigating the cause of it I've found that doing "executeUpdate" with about 24 arguments in the ArgumentsArray cause the compiler to be very slow and finally return compilation error.
When decreasing the number of arguments in the array to 20, the compiler build is still slow but succeed to finish successfully.
Any idea why/help will be welcome... !
Here is my code: (Build succeed but uncommenting the 4 lines below will make the compilation build failed. Any other 4 lines will have same result of course)
Thanks !