Hi,
Was you able to solve it for Xcode 14+ versions. I am clueless it was working fine on Xcode 13 versions but not on Xcode 14. Since apple has made compulsory so we need to upgrade to Xcode 14. Please help.
Post
Replies
Boosts
Views
Activity
did you found anything helpful in this Thanks in advance.
I am also facing this issue has anyone found any luck on this. I am making build using script and using single quotes only. Please find the script
# archieve the build
ARCHIEVE_PATH="$BUILD_DIR/${ASSET_BASENAME}/$EXPORT_METHOD/${PRODUCT_NAME}.xcarchive"
(xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -configuration "$CONFIGURATION" -destination 'generic/platform=iOS' -archivePath "$ARCHIEVE_PATH" clean archive 1> /dev/null ||
xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -configuration "$CONFIGURATION" -destination 'generic/platform=iOS' -archivePath "$ARCHIEVE_PATH" clean archive ||
failed "XCode failed to build app")
and I am getting following on the Jenkins console
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace BroughSuperior.xcworkspace -scheme BroughSuperior -configuration Release -destination generic/platform=iOS -archivePath "administrator/testing-app5_ios_2023-05-05-10:10:33/enterprise/testing-app5.xcarchive" clean archive
User defaults from command line:
IDEArchivePathOverride = /Users/administrator/.jenkins/jobs/iOS Bruff dev/workspace/BroughSuperior/administrator/testing-app5_ios_2023-05-05-10:10:33/enterprise/testing-app5.xcarchive
IDEPackageSupportUseBuiltinSCM = YES
Please help I can not use Xcode 13 now, since apple has stopped taking builds from Xcode 13. And the same command works in Xcode 13
let str2 = str.slice(from: "position", to: "request")
let xCor = str2?.slice(from: "= ", to:" y")
let yCor = str2?.slice(from: "y = ", to: " ")
let xVal = Double(xCor!)
let yVal = Double(yCor!)
extension String {
func slice(from: String, to: String) -> String? {
return (range(of: from)?.upperBound).flatMap { substringFrom in
(range(of: to, range: substringFrom..<endIndex)?.lowerBound).map { substringTo in
String(self[substringFrom..<substringTo])
}
}
}
}
Hi,
I used this code to separate the x and y coordinate from the description string provided. This is a workaround as I could not find anything better for now. Please let me know if anyone has better solution to this problem.
I have a similar question, I want to open UIActivityViewController on a click event on the web view in iPad on the screen.
It was solved by passing the value using a function as per the apple documentation instead of variable declaration.
The function need to be called in viewdidload.
Thanks a lot I was able to get it solved using the hint provided by you.
Thanks for the quick answer. Can you please help me how can I create a class variable for it. So I can use it in multiple functions.