Skip to content
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

[ios]fix complie issue with xcode13 Undefined symbols ___gcov_flush #3301

Merged
merged 1 commit into from May 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions playground/ios/WeexDemo/AppDelegate.m
Expand Up @@ -103,8 +103,8 @@ - (void)applicationDidEnterBackground:(UIApplication *)application
setenv("GCOV_PREFIX", [documentsDirectory cStringUsingEncoding:NSUTF8StringEncoding], 1);
setenv("GCOV_PREFIX_STRIP", "6", 1);
#endif
extern void __gcov_flush(void);
__gcov_flush();
extern void __gcov_reset(void);
__gcov_reset();
#endif
}

Expand Down
4 changes: 2 additions & 2 deletions playground/ios/WeexDemo/WXExtModule.m
Expand Up @@ -36,8 +36,8 @@ - (void)generateCover:(WXModuleKeepAliveCallback)callback
#if defined __cplusplus
extern "C" {
#endif
extern void __gcov_flush(void);
__gcov_flush();
extern void __gcov_reset(void);
__gcov_reset();
#if defined __cplusplus
};
#endif
Expand Down