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

One of the two will be used. Which one is undefined. #261

Open
yanmin7857 opened this issue Aug 23, 2018 · 2 comments
Open

One of the two will be used. Which one is undefined. #261

yanmin7857 opened this issue Aug 23, 2018 · 2 comments

Comments

@yanmin7857
Copy link

*** Compiling /Users/xiaoyang/Desktop/ShenBianDian_busshop/ShenBianDian_busshop/ViewController1.m ***
Loading .dylib - Ignore any duplicate class warning...
objc[33577]: Class ViewController1 is implemented in both /Users/xiaoyang/Library/Developer/CoreSimulator/Devices/83AF8B2F-3254-4B54-9D6E-6BEE07E31BDF/data/Containers/Bundle/Application/FAFD7AD5-8944-42E9-A226-200C6D1DED3B/ShenBianDian_busshop.app/ShenBianDian_busshop (0x1012e8aa8) and /Users/xiaoyang/Library/Containers/com.johnholdsworth.InjectionIII/Data/eval101.dylib (0x122324ad0). One of the two will be used. Which one is undefined.

Direct collapse,
What should I do next?

@yanmin7857
Copy link
Author

objc[45162]: Class ViewController1 is implemented in both /Users/xiaoyang/Library/Developer/CoreSimulator/Devices/83AF8B2F-3254-4B54-9D6E-6BEE07E31BDF/data/Containers/Bundle/Application/FB856B56-A896-411E-A8AF-A20BEABDDEE1/ShenBianDian_busshop.app/ShenBianDian_busshop (0x10d7acaa8) and /Users/xiaoyang/Library/Containers/com.johnholdsworth.InjectionIII/Data/eval101.dylib (0x130fefad0). One of the two will be used. Which one is undefined.
2018-08-23 15:05:16.508861+0800 ShenBianDian_busshop[45162:2569534] invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.
2018-08-23 15:05:16.515146+0800 ShenBianDian_busshop[45162:2569534] UMLOG: error: session_id=DEE7D9318E375FC530A48FD6E9064B8E, context=Application received signal SIGSEGV
(null)
((
0 CoreFoundation 0x0000000113dfd1e6 __exceptionPreprocess + 294
1 libobjc.A.dylib 0x00000001124b8031 objc_exception_throw + 48
2 CoreFoundation 0x0000000113e72975 +[NSException raise:format:] + 197
3 libsystem_platform.dylib 0x000000011614bf5a _sigtramp + 26
4 iOSInjection 0x000000012fdef21a _T012iOSInjection12SwiftSweeperC10sweepValueyypF + 3658
5 libswiftCore.dylib 0x00000001303110a9 _ZL24searchInConformanceCachePKN5swift14TargetMetadataINS_9InProcessEEEPKNS_24TargetProtocolDescriptorIS1_EE + 57
6 libswiftCore.dylib 0x0000000130310af7 swift_conformsToProtocol + 55
7 libswiftCore.dylib 0x00000001302ffdd2 _ZL20_conformsToProtocolsPKN5swift11OpaqueValueEPKNS_14TargetMetadataINS_9InProcessEEEPKNS_29TargetExistentialTypeMetadataIS4_EEPPKNS_12WitnessTableE + 178
8 libswiftCore.dylib 0x00000001302fe416 _ZL25_dynamicCastToExistentialPN5swift11OpaqueValueES1_PKNS_14TargetMetadataINS_9InProcessEEEPKNS_29TargetExistentialTypeMetadataIS3_EENS_16DynamicCastFlagsE + 422
9 libswiftCore.dylib 0x000000013024147a swift_rt_swift_dynamicCast + 10
10 iOSInjection 0x000000012fdefa13 _T012iOSInjection12SwiftSweeperC12sweepMembersyypF + 83
11 iOSInjection 0x000000012fdef78b _T012iOSInjection12SwiftSweeperC13sweepInstanceyyXlF + 923
12 iOSInjection 0x000000012fdf1030 T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyFySPyyXlSgGcfU + 208
13 iOSInjection 0x000000012fdf1066 _T0SPyyXlSgGs5Error_pIgyzo_ABytsAC_pIgyrzo_TR + 22
14 iOSInjection 0x000000012fdf110b _T0SPyyXlSgGs5Error_pIgyzo_ABytsAC_pIgyrzo_TRTA + 27
15 libswiftCore.dylib 0x00000001300afa85 _T0SP17withMemoryReboundqd_0_qd__m2to_Si8capacityqd_0_SPyqd__GKctKr0_lF + 21
16 iOSInjection 0x000000012fdf0dc8 _T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyF + 2792
17 iOSInjection 0x000000012fdf1194 _T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyFTo + 36
18 iOSInjection 0x000000012fdef9a4 _T0Ta + 20
19 iOSInjection 0x000000012fdef8a6 _T012iOSInjection12SwiftSweeperC13sweepInstanceyyXlF + 1206
20 iOSInjection 0x000000012fdeedc2 _T012iOSInjection12SwiftSweeperC10sweepValueyypF + 2546
21 iOSInjection 0x000000012fdefeca _T012iOSInjection12SwiftSweeperC12sweepMembersyypF + 1290
22 iOSInjection 0x000000012fdef78b _T012iOSInjection12SwiftSweeperC13sweepInstanceyyXlF + 923
23 iOSInjection 0x000000012fdf1030 T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyFySPyyXlSgGcfU + 208
24 iOSInjection 0x000000012fdf1066 _T0SPyyXlSgGs5Error_pIgyzo_ABytsAC_pIgyrzo_TR + 22
25 iOSInjection 0x000000012fdf110b _T0SPyyXlSgGs5Error_pIgyzo_ABytsAC_pIgyrzo_TRTA + 27
26 libswiftCore.dylib 0x00000001300afa85 _T0SP17withMemoryReboundqd_0_qd__m2to_Si8capacityqd_0_SPyqd__GKctKr0_lF + 21
27 iOSInjection 0x000000012fdf0dc8 _T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyF + 2792
28 iOSInjection 0x000000012fdf1194 _T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyFTo + 36
29 iOSInjection 0x000000012fdef9a4 _T0Ta + 20
30 iOSInjection 0x000000012fdef8a6 _T012iOSInjection12SwiftSweeperC13sweepInstanceyyXlF + 1206
31 iOSInjection 0x000000012fdeedc2 _T012iOSInjection12SwiftSweeperC10sweepValueyypF + 2546
32 iOSInjection 0x000000012fdefeca _T012iOSInjection12SwiftSweeperC12sweepMembersyypF + 1290
33 iOSInjection 0x000000012fdef78b _T012iOSInjection12SwiftSweeperC13sweepInstanceyyXlF + 923
34 iOSInjection 0x000000012fdf1030 T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyFySPyyXlSgGcfU + 208
35 iOSInjection 0x000000012fdf1066 _T0SPyyXlSgGs5Error_pIgyzo_ABytsAC_pIgyrzo_TR + 22
36 iOSInjection 0x000000012fdf110b _T0SPyyXlSgGs5Error_pIgyzo_ABytsAC_pIgyrzo_TRTA + 27
37 libswiftCore.dylib 0x00000001300afa85 _T0SP17withMemoryReboundqd_0_qd__m2to_Si8capacityqd_0_SPyqd__GKctKr0_lF + 21
38 iOSInjection 0x000000012fdf0dc8 _T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyF + 2792
39 iOSInjection 0x000000012fdf1194 _T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyFTo + 36
40 iOSInjection 0x000000012fdef9a4 _T0Ta + 20
41 iOSInjection 0x000000012fdef8a6 _T012iOSInjection12SwiftSweeperC13sweepInstanceyyXlF + 1206
42 iOSInjection 0x000000012fdeedc2 _T012iOSInjection12SwiftSweeperC10sweepValueyypF + 2546
43 iOSInjection 0x000000012fdefeca _T012iOSInjection12SwiftSweeperC12sweepMembersyypF + 1290
44 iOSInjection 0x000000012fdef78b _T012iOSInjection12SwiftSweeperC13sweepInstanceyyXlF + 923
45 iOSInjection 0x000000012fdf1030 T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyFySPyyXlSgGcfU + 208
46 iOSInjection 0x000000012fdf1066 _T0SPyyXlSgGs5Error_pIgyzo_ABytsAC_pIgyrzo_TR + 22
47 iOSInjection 0x000000012fdf110b _T0SPyyXlSgGs5Error_pIgyzo_ABytsAC_pIgyrzo_TRTA + 27
48 libswiftCore.dylib 0x00000001300afa85 _T0SP17withMemoryReboundqd_0_qd__m2to_Si8capacityqd_0_SPyqd__GKctKr0_lF + 21
49 iOSInjection 0x000000012fdf0dc8 _T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyF + 2792
50 iOSInjection 0x000000012fdf1194 _T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyFTo + 36
51 iOSInjection 0x000000012fdef9a4 _T0Ta + 20
52 iOSInjection 0x000000012fdef8a6 _T012iOSInjection12SwiftSweeperC13sweepInstanceyyXlF + 1206
53 iOSInjection 0x000000012fdeedc2 _T012iOSInjection12SwiftSweeperC10sweepValueyypF + 2546
54 iOSInjection 0x000000012fdefeca _T012iOSInjection12SwiftSweeperC12sweepMembersyypF + 1290
55 iOSInjection 0x000000012fdef78b _T012iOSInjection12SwiftSweeperC13sweepInstanceyyXlF + 923
56 iOSInjection 0x000000012fdf1030 T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyFySPyyXlSgGcfU + 208
57 iOSInjection 0x000000012fdf1066 _T0SPyyXlSgGs5Error_pIgyzo_ABytsAC_pIgyrzo_TR + 22
58 iOSInjection 0x000000012fdf110b _T0SPyyXlSgGs5Error_pIgyzo_ABytsAC_pIgyrzo_TRTA + 27
59 libswiftCore.dylib 0x00000001300afa85 _T0SP17withMemoryReboundqd_0_qd__m2to_Si8capacityqd_0_SPyqd__GKctKr0_lF + 21
60 iOSInjection 0x000000012fdf0dc8 _T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyF + 2792
61 iOSInjection 0x000000012fdf1194 _T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyFTo + 36
62 iOSInjection 0x000000012fdef9a4 _T0Ta + 20
63 iOSInjection 0x000000012fdef8a6 _T012iOSInjection12SwiftSweeperC13sweepInstanceyyXlF + 1206
64 iOSInjection 0x000000012fdeedc2 _T012iOSInjection12SwiftSweeperC10sweepValueyypF + 2546
65 iOSInjection 0x000000012fdefeca _T012iOSInjection12SwiftSweeperC12sweepMembersyypF + 1290
66 iOSInjection 0x000000012fdef78b _T012iOSInjection12SwiftSweeperC13sweepInstanceyyXlF + 923
67 iOSInjection 0x000000012fdf1030 T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyFySPyyXlSgGcfU + 208
68 iOSInjection 0x000000012fdf1066 _T0SPyyXlSgGs5Error_pIgyzo_ABytsAC_pIgyrzo_TR + 22
69 iOSInjection 0x000000012fdf110b _T0SPyyXlSgGs5Error_pIgyzo_ABytsAC_pIgyrzo_TRTA + 27
70 libswiftCore.dylib 0x00000001300afa85 _T0SP17withMemoryReboundqd_0_qd__m2to_Si8capacityqd_0_SPyqd__GKctKr0_lF + 21
71 iOSInjection 0x000000012fdf0dc8 _T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyF + 2792
72 iOSInjection 0x000000012fdf1194 _T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyFTo + 36
73 iOSInjection 0x000000012fdef9a4 _T0Ta + 20
74 iOSInjection 0x000000012fdef8a6 _T012iOSInjection12SwiftSweeperC13sweepInstanceyyXlF + 1206
75 iOSInjection 0x000000012fdf1030 T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyFySPyyXlSgGcfU + 208
76 iOSInjection 0x000000012fdf1066 _T0SPyyXlSgGs5Error_pIgyzo_ABytsAC_pIgyrzo_TR + 22
77 iOSInjection 0x000000012fdf110b _T0SPyyXlSgGs5Error_pIgyzo_ABytsAC_pIgyrzo_TRTA + 27
78 libswiftCore.dylib 0x00000001300afa85 _T0SP17withMemoryReboundqd_0_qd__m2to_Si8capacityqd_0_SPyqd__GKctKr0_lF + 21
79 iOSInjection 0x000000012fdf0dc8 _T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyF + 2792
80 iOSInjection 0x000000012fdf1194 _T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyFTo + 36
81 iOSInjection 0x000000012fdef9a4 _T0Ta + 20
82 iOSInjection 0x000000012fdef8a6 _T012iOSInjection12SwiftSweeperC13sweepInstanceyyXlF + 1206
83 iOSInjection 0x000000012fdf1030 T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyFySPyyXlSgGcfU + 208
84 iOSInjection 0x000000012fdf1066 _T0SPyyXlSgGs5Error_pIgyzo_ABytsAC_pIgyrzo_TR + 22
85 iOSInjection 0x000000012fdf110b _T0SPyyXlSgGs5Error_pIgyzo_ABytsAC_pIgyrzo_TRTA + 27
86 libswiftCore.dylib 0x00000001300afa85 _T0SP17withMemoryReboundqd_0_qd__m2to_Si8capacityqd_0_SPyqd__GKctKr0_lF + 21
87 iOSInjection 0x000000012fdf0dc8 _T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyF + 2792
88 iOSInjection 0x000000012fdf1194 _T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyFTo + 36
89 iOSInjection 0x000000012fdef9a4 _T0Ta + 20
90 iOSInjection 0x000000012fdef8a6 _T012iOSInjection12SwiftSweeperC13sweepInstanceyyXlF + 1206
91 iOSInjection 0x000000012fdf1030 T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyFySPyyXlSgGcfU + 208
92 iOSInjection 0x000000012fdf1066 _T0SPyyXlSgGs5Error_pIgyzo_ABytsAC_pIgyrzo_TR + 22
93 iOSInjection 0x000000012fdf110b _T0SPyyXlSgGs5Error_pIgyzo_ABytsAC_pIgyrzo_TRTA + 27
94 libswiftCore.dylib 0x00000001300afa85 _T0SP17withMemoryReboundqd_0_qd__m2to_Si8capacityqd_0_SPyqd__GKctKr0_lF + 21
95 iOSInjection 0x000000012fdf0dc8 _T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyF + 2792
96 iOSInjection 0x000000012fdf1194 _T0So8NSObjectC12iOSInjectionE16legacySwiftSweepyyFTo + 36
97 iOSInjection 0x000000012fdef9a4 _T0Ta + 20
98 iOSInjection 0x000000012fdef8a6 _T012iOSInjection12SwiftSweeperC13sweepInstanceyyXlF + 1206
99 iOSInjection 0x000000012fdeedc2 _T012iOSInjection12SwiftSweeperC10sweepValueyypF + 2546
100 iOSInjection 0x000000012fdeef87 _T012iOSInjection12SwiftSweeperC10sweepValueyypF + 2999
101 iOSInjection 0x000000012fdee71d _T012iOSInjection12SwiftSweeperC10sweepValueyypF + 845
102 iOSInjection 0x000000012fdeb9d5 _T012iOSInjection14SwiftInjectionC6injectySS7tmpfile_tKFZ + 5893
103 iOSInjection 0x000000012fde9946 _T012iOSInjection14SwiftInjectionC6injectyyXlXpSg8oldClass_SS15classNameOrFiletFZ + 598
104 iOSInjection 0x000000012fde9af2 _T012iOSInjection14SwiftInjectionC6injectyyXlXpSg8oldClass_SS15classNameOrFiletFZTo + 146
105 iOSInjection 0x000000012fda361a __34-[InjectionClient runInBackground]_block_invoke.1284 + 3546
106 libdispatch.dylib 0x0000000115c396cb _dispatch_call_block_and_release + 12
107 libdispatch.dylib 0x0000000115c3a709 _dispatch_client_callout + 8
108 libdispatch.dylib 0x0000000115c44708 _dispatch_main_queue_callback_4CF + 1279
109 CoreFoundation 0x0000000113dbfc99 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
110 CoreFoundation 0x0000000113d83ea6 __CFRunLoopRun + 2342
111 CoreFoundation 0x0000000113d8330b CFRunLoopRunSpecific + 635
112 GraphicsServices 0x0000000118a00a73 GSEventRunModal + 62
113 UIKit 0x000000011031d057 UIApplicationMain + 159
114 ShenBianDian_busshop 0x000000010d170def main + 111
115 libdyld.dylib 0x0000000115caf955 start + 1
116 ??? 0x0000000000000001 0x0 + 1
)

dSYM UUID: E6F8E359-D4F4-38D2-96FB-DFB5EF420630
CPU Type: x86_64
Slide Address: 0x0000000100000000
Binary Image: ShenBianDian_busshop
Base Address: 0x000000010d149000
2018-08-23 15:05:16.523831+0800 ShenBianDian_busshop[45162:2569534] UMLOG: session: session_id=DEE7D9318E375FC530A48FD6E9064B8E, duration=43.866677
libc++abi.dylib: terminate_handler unexpectedly threw an exception

@johnno1962
Copy link
Owner

The “sweep” to find objects to send the “injected” method is not working for your app. You’ll have to look for INJECTION_BUNDLE_NOTIFICATION notifications instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants