Skip to content

feat: support xcode 16 #574

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [Unreleased](https://github.com/Instabug/Instabug-Flutter/compare/v14.3.0...dev)

### Added

- Add support for xCode 16. ([#574](https://github.com/Instabug/Instabug-Flutter/pull/574))

## [14.3.0](https://github.com/Instabug/Instabug-Flutter/compare/v14.1.0...14.3.0) (April 21, 2025)

### Added
Expand Down
4 changes: 2 additions & 2 deletions example/ios/InstabugTests/ApmApiTests.m
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#import <XCTest/XCTest.h>
#import "OCMock/OCMock.h"
#import "ApmApi.h"
#import "Instabug/IBGAPM.h"
#import "Instabug/Instabug.h"
#import "InstabugSDK/IBGAPM.h"
#import "InstabugSDK/InstabugSDK.h"
#import "IBGAPM+PrivateAPIs.h"

@interface ApmApiTests : XCTestCase
Expand Down
2 changes: 1 addition & 1 deletion example/ios/InstabugTests/BugReportingApiTests.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#import <XCTest/XCTest.h>
#import "OCMock/OCMock.h"
#import "BugReportingApi.h"
#import "Instabug/IBGBugReporting.h"
#import "InstabugSDK/IBGBugReporting.h"

@interface BugReportingApiTests : XCTestCase

Expand Down
4 changes: 2 additions & 2 deletions example/ios/InstabugTests/CrashReportingApiTests.m
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#import <XCTest/XCTest.h>
#import "OCMock/OCMock.h"
#import "CrashReportingApi.h"
#import "Instabug/IBGCrashReporting.h"
#import "Instabug/Instabug.h"
#import "InstabugSDK/IBGCrashReporting.h"
#import "InstabugSDK/InstabugSDK.h"
#import "Util/Instabug+Test.h"
#import "Util/IBGCrashReporting+CP.h"

Expand Down
2 changes: 1 addition & 1 deletion example/ios/InstabugTests/FeatureRequestsApiTests.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#import <XCTest/XCTest.h>
#import "OCMock/OCMock.h"
#import "FeatureRequestsApi.h"
#import "Instabug/IBGFeatureRequests.h"
#import "InstabugSDK/IBGFeatureRequests.h"

@interface FeatureRequestsApiTests : XCTestCase

Expand Down
2 changes: 1 addition & 1 deletion example/ios/InstabugTests/InstabugApiTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#import <XCTest/XCTest.h>
#import "OCMock/OCMock.h"
#import "InstabugApi.h"
#import "Instabug/Instabug.h"
#import "InstabugSDK/InstabugSDK.h"
#import "Util/Instabug+Test.h"
#import "IBGNetworkLogger+CP.h"
#import "Flutter/Flutter.h"
Expand Down
2 changes: 1 addition & 1 deletion example/ios/InstabugTests/InstabugLogApiTests.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#import <XCTest/XCTest.h>
#import "OCMock/OCMock.h"
#import "InstabugLogApi.h"
#import "Instabug/IBGLog.h"
#import "InstabugSDK/IBGLog.h"

@interface InstabugLogApiTests : XCTestCase

Expand Down
2 changes: 1 addition & 1 deletion example/ios/InstabugTests/RepliesApiTests.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#import <XCTest/XCTest.h>
#import "OCMock/OCMock.h"
#import "RepliesApi.h"
#import "Instabug/IBGReplies.h"
#import "InstabugSDK/IBGReplies.h"

@interface RepliesApiTests : XCTestCase

Expand Down
2 changes: 1 addition & 1 deletion example/ios/InstabugTests/SessionReplayApiTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#import <instabug_flutter/SessionReplayApi.h>
#import "OCMock/OCMock.h"
#import "SessionReplayApi.h"
#import "Instabug/IBGSessionReplay.h"
#import "InstabugSDK/IBGSessionReplay.h"

@interface SessionReplayApiTests : XCTestCase

Expand Down
2 changes: 1 addition & 1 deletion example/ios/InstabugTests/SurveysApiTests.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#import <XCTest/XCTest.h>
#import "OCMock/OCMock.h"
#import "SurveysApi.h"
#import "Instabug/IBGSurveys.h"
#import "InstabugSDK/IBGSurveys.h"
#import "Util/IBGSurvey+Test.h"

@interface SurveysApiTests : XCTestCase
Expand Down
4 changes: 2 additions & 2 deletions example/ios/InstabugTests/Util/Apm+Test.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This header file defines Instabug methods that are called using selectors for test verification.

#import <Instabug/IBGAPM.h>
#import <Instabug/Instabug.h>
#import <InstabugSDK/IBGAPM.h>
#import <InstabugSDK/InstabugSDK.h>

@interface IBGAPM (Test)
+ (void)startUITraceCPWithName:(NSString *)name startTimestampMUS:(NSTimeInterval)startTimestampMUS;
Expand Down
2 changes: 1 addition & 1 deletion example/ios/InstabugTests/Util/IBGCrashReporting+CP.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Instabug/Instabug.h>
#import <InstabugSDK/InstabugSDK.h>


@interface IBGCrashReporting (CP)
Expand Down
2 changes: 1 addition & 1 deletion example/ios/InstabugTests/Util/IBGNetworkLogger+Test.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This header file defines IBGNetworkLogger methods that are called using selectors for test verification.

#import <Instabug/Instabug.h>
#import <InstabugSDK/InstabugSDK.h>

@interface IBGNetworkLogger (Test)
+ (void)addNetworkLogWithUrl:(NSString *)url
Expand Down
2 changes: 1 addition & 1 deletion example/ios/InstabugTests/Util/IBGSurvey+Test.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This header file makes IBGSurvey title property editable to be used in tests.

#import <Instabug/IBGSurveys.h>
#import <InstabugSDK/IBGSurveys.h>

@interface IBGSurvey (Test)
@property (nonatomic, strong) NSString *title;
Expand Down
2 changes: 1 addition & 1 deletion example/ios/InstabugTests/Util/Instabug+Test.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This header file defines Instabug methods that are called using selectors for test verification.

#import <Instabug/Instabug.h>
#import <InstabugSDK/InstabugSDK.h>

@interface Instabug (Test)
+ (void)setCurrentPlatform:(IBGPlatform)platform;
Expand Down
4 changes: 3 additions & 1 deletion example/ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
platform :ios, '13.4'
platform :ios, '14.4'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down Expand Up @@ -27,8 +27,10 @@ require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelpe

flutter_ios_podfile_setup
target 'Runner' do

use_frameworks!
use_modular_headers!
pod 'Instabug', :podspec => 'https://ios-releases.instabug.com/custom/fix-main-thread-warning/15.0.0/Instabug.podspec'

flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
Expand Down
14 changes: 8 additions & 6 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,33 +1,35 @@
PODS:
- Flutter (1.0.0)
- Instabug (14.3.0)
- Instabug (15.0.0)
- instabug_flutter (14.3.0):
- Flutter
- Instabug (= 14.3.0)
- Instabug (= 15.0.0)
- OCMock (3.6)

DEPENDENCIES:
- Flutter (from `Flutter`)
- Instabug (from `https://ios-releases.instabug.com/custom/fix-main-thread-warning/15.0.0/Instabug.podspec`)
- instabug_flutter (from `.symlinks/plugins/instabug_flutter/ios`)
- OCMock (= 3.6)

SPEC REPOS:
trunk:
- Instabug
- OCMock

EXTERNAL SOURCES:
Flutter:
:path: Flutter
Instabug:
:podspec: https://ios-releases.instabug.com/custom/fix-main-thread-warning/15.0.0/Instabug.podspec
instabug_flutter:
:path: ".symlinks/plugins/instabug_flutter/ios"

SPEC CHECKSUMS:
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
Instabug: 97a4e694731f46bbc02dbe49ab29cc552c5e2f41
instabug_flutter: 4e4a9b162d77d5624d08ccdf81745d923745e062
Instabug: 3b1db5a683e85ec5a02946aa2b3314036f9022be
instabug_flutter: e59da7a0cae82ce00b2773625ee544c275442000
OCMock: 5ea90566be239f179ba766fd9fbae5885040b992

PODFILE CHECKSUM: 8f7552fd115ace1988c3db54a69e4a123c448f84
PODFILE CHECKSUM: c16418947581b888c337ed7ff120a59b4b5f3f3f

COCOAPODS: 1.16.2
5 changes: 4 additions & 1 deletion example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
Expand All @@ -559,6 +559,7 @@
"$(PROJECT_DIR)/Flutter",
);
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -696,6 +697,7 @@
"$(PROJECT_DIR)/Flutter",
);
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -727,6 +729,7 @@
"$(PROJECT_DIR)/Flutter",
);
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 15.6;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
2 changes: 1 addition & 1 deletion example/ios/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import UIKit
import Flutter

@UIApplicationMain
@main
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
Expand Down
4 changes: 2 additions & 2 deletions example/ios/Runner/InstabugExampleMethodCallHandler.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#import <Foundation/Foundation.h>
#import "InstabugExampleMethodCallHandler.h"
#import <Instabug/IBGCrashReporting.h>
#import <Instabug/Instabug.h>
#import <InstabugSDK/IBGCrashReporting.h>
#import <InstabugSDK/InstabugSDK.h>
#import <Flutter/Flutter.h>

// MARK: - Private Interface
Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/Modules/ApmApi.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "Instabug.h"
#import "InstabugSDK.h"
#import "ApmApi.h"
#import "ArgsRegistry.h"
#import "IBGAPM+PrivateAPIs.h"
Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/Modules/BugReportingApi.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import <Flutter/Flutter.h>
#import "Instabug.h"
#import "InstabugSDK.h"
#import "BugReportingApi.h"
#import "ArgsRegistry.h"

Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/Modules/CrashReportingApi.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "Instabug.h"
#import "InstabugSDK.h"
#import "CrashReportingApi.h"
#import "../Util/IBGCrashReporting+CP.h"
#import "ArgsRegistry.h"
Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/Modules/FeatureRequestsApi.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "Instabug.h"
#import "InstabugSDK.h"
#import "FeatureRequestsApi.h"
#import "ArgsRegistry.h"

Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/Modules/InstabugApi.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#import <Foundation/Foundation.h>
#import <CoreText/CoreText.h>
#import <Flutter/Flutter.h>
#import "Instabug.h"
#import "InstabugSDK.h"
#import "IBGNetworkLogger+CP.h"
#import "InstabugApi.h"
#import "ArgsRegistry.h"
Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/Modules/InstabugLogApi.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "Instabug.h"
#import "InstabugSDK.h"
#import "InstabugLogApi.h"

extern void InitInstabugLogApi(id<FlutterBinaryMessenger> messenger) {
Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/Modules/RepliesApi.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "Instabug.h"
#import "InstabugSDK.h"
#import "RepliesApi.h"

extern void InitRepliesApi(id<FlutterBinaryMessenger> messenger) {
Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/Modules/SessionReplayApi.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "Instabug.h"
#import "InstabugSDK.h"
#import "IBGSessionReplay.h"
#import "SessionReplayApi.h"
#import "ArgsRegistry.h"
Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/Modules/SurveysApi.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import <Flutter/Flutter.h>
#import "Instabug.h"
#import "InstabugSDK.h"
#import "SurveysApi.h"

extern void InitSurveysApi(id<FlutterBinaryMessenger> messenger) {
Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/Util/ArgsRegistry.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import <Foundation/Foundation.h>
#import <Instabug/Instabug.h>
#import <InstabugSDK/InstabugSDK.h>

typedef NSDictionary<NSString *, NSNumber *> ArgsDictionary;

Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/Util/IBGAPM+PrivateAPIs.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2020 Moataz. All rights reserved.
//

#import <Instabug/IBGAPM.h>
#import <InstabugSDK/IBGAPM.h>
#import "IBGTimeIntervalUnits.h"

@interface IBGAPM (PrivateAPIs)
Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/Util/IBGCrashReporting+CP.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Instabug/Instabug.h>
#import <InstabugSDK/InstabugSDK.h>


@interface IBGCrashReporting (CP)
Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/Util/IBGNetworkLogger+CP.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Instabug/Instabug.h>
#import <InstabugSDK/InstabugSDK.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
4 changes: 2 additions & 2 deletions ios/instabug_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ Pod::Spec.new do |s|
s.public_header_files = 'Classes/**/*.h'

s.ios.deployment_target = '10.0'
s.pod_target_xcconfig = { 'OTHER_LDFLAGS' => '-framework "Flutter" -framework "Instabug"'}
s.pod_target_xcconfig = { 'OTHER_LDFLAGS' => '-framework "Flutter" -framework "InstabugSDK"'}

s.dependency 'Flutter'
s.dependency 'Instabug', '14.3.0'
s.dependency 'Instabug', '15.0.0'
end