Skip to content

Commit

Permalink
IRCCloud.xcodeproj
Browse files Browse the repository at this point in the history
Fix build issues with Xcode 15
  • Loading branch information
c99koder committed Nov 8, 2023
1 parent 07dbad8 commit b21bf34
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
4 changes: 2 additions & 2 deletions IRCCloud/Classes/LoginSplashViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,8 @@ -(IBAction)onePasswordButtonPressed:(id)sender {
}
return;
}
if([loginDict[AppExtensionReturnedFieldsKey][@"Name"] length])
self->name.text = loginDict[AppExtensionReturnedFieldsKey][@"Name"];
if(((NSString *)loginDict[AppExtensionReturnedFieldsKey][@"Name"]).length)
self->name.text = (NSString *)(loginDict[AppExtensionReturnedFieldsKey][@"Name"]);
if([loginDict[AppExtensionUsernameKey] length])
self->username.text = loginDict[AppExtensionUsernameKey];
self->password.text = loginDict[AppExtensionPasswordKey] ? : @"";
Expand Down
15 changes: 14 additions & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,18 @@ post_install do |installer|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
end
end

installer.aggregate_targets.each do |target|
target.xcconfigs.each do |variant, xcconfig|
xcconfig_path = target.client_root + target.xcconfig_relative_path(variant)
IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
end
end
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if config.base_configuration_reference.is_a? Xcodeproj::Project::Object::PBXFileReference
xcconfig_path = config.base_configuration_reference.real_path
IO.write(xcconfig_path, IO.read(xcconfig_path).gsub("DT_TOOLCHAIN_DIR", "TOOLCHAIN_DIR"))
end
end
end
end

0 comments on commit b21bf34

Please sign in to comment.