Skip to content

Commit 91eaf3e

Browse files
committed
Fixed podsped and autoconf as in datso#219
1 parent 4abd7c3 commit 91eaf3e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

ios/RTCPjSip.xcodeproj/project.pbxproj

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,8 @@
239239
MTL_ENABLE_DEBUG_INFO = YES;
240240
ONLY_ACTIVE_ARCH = YES;
241241
SDKROOT = iphoneos;
242+
USE_HEADERMAP = NO;
243+
242244
};
243245
name = Debug;
244246
};
@@ -275,6 +277,7 @@
275277
MTL_ENABLE_DEBUG_INFO = NO;
276278
SDKROOT = iphoneos;
277279
VALIDATE_PRODUCT = YES;
280+
USE_HEADERMAP = NO;
278281
};
279282
name = Release;
280283
};
@@ -288,7 +291,7 @@
288291
);
289292
GCC_PREPROCESSOR_DEFINITIONS = (
290293
"DEBUG=1",
291-
PJ_AUTOCONF,
294+
"PJ_AUTOCONF=1",
292295
);
293296
HEADER_SEARCH_PATHS = (
294297
"$(SRCROOT)/../../react-native/React/**",
@@ -314,7 +317,7 @@
314317
"$(inherited)",
315318
"$(PROJECT_DIR)",
316319
);
317-
GCC_PREPROCESSOR_DEFINITIONS = PJ_AUTOCONF;
320+
GCC_PREPROCESSOR_DEFINITIONS = "PJ_AUTOCONF=1";
318321
HEADER_SEARCH_PATHS = (
319322
"$(SRCROOT)/../../react-native/React/**",
320323
"\"$(SRCROOT)/VialerPJSIP/Headers\"",

react-native-pjsip.podspec

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ Pod::Spec.new do |s|
1717

1818
s.dependency 'React'
1919
s.vendored_frameworks = 'ios/VialerPJSIP.framework'
20+
s.xcconfig = {
21+
'GCC_PREPROCESSOR_DEFINITIONS' => 'PJ_AUTOCONF=1',
22+
'USE_HEADERMAP' => 'NO',
23+
}
2024
end

0 commit comments

Comments
 (0)