最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

[记录]swift中添加支持聊天框架XMPP

XMPP crifan 2963浏览 0评论

想要用swift实现一个聊天的功能

需要去找swift的聊天框架。

搜:

swift xmpp library
参考:
-》只是个聊天工具,其中自己的swift的SDK是Java写的库。。。
-》也是在说swift客户端。。。
一个ObjC写的iOS的xmpp框架
去试试:
下载的到:
downloaded swiftxmpp project
然后提示是否转换为最新的swift的语法:
notice convert to latest swift syntax
无法直接编译,所以去:
参考提示去初始化:
git submodule update --init --recursive && git submodule foreach git pull origin master
run code for git submodule update init recursive git submodule foreach git pull origin master
licrifandeMacBook-Pro:git crifan$ pwd
/Users/crifan/dev/dev_src/swift/SwiftXMPP/git
licrifandeMacBook-Pro:git crifan$ git clone https://github.com/nemesit/SwiftXMPP.git
Cloning into 'SwiftXMPP'...
remote: Counting objects: 277, done.
remote: Total 277 (delta 0), reused 0 (delta 0), pack-reused 277
Receiving objects: 100% (277/277), 1.66 MiB | 329.00 KiB/s, done.
Resolving deltas: 100% (75/75), done.
Checking connectivity... done.
licrifandeMacBook-Pro:git crifan$ cd SwiftXMPP
licrifandeMacBook-Pro:SwiftXMPP crifan$ git submodule update --init --recursive && git submodule foreach git pull origin master
Submodule 'XMPPFramework' (https://github.com/robbiehanson/XMPPFramework.git) registered for path 'XMPPFramework'
Cloning into 'XMPPFramework'...
remote: Counting objects: 8944, done.
remote: Total 8944 (delta 0), reused 0 (delta 0), pack-reused 8944
Receiving objects: 100% (8944/8944), 22.94 MiB | 1.21 MiB/s, done.
Resolving deltas: 100% (4867/4867), done.
Checking connectivity... done.
Submodule path 'XMPPFramework': checked out '93a37fe67e82247cb25d9f8498d99ceb3971f182'
Submodule 'Vendor/facebook-ios-sdk' (git://github.com/facebook/facebook-ios-sdk.git) registered for path 'Vendor/facebook-ios-sdk'
Cloning into 'Vendor/facebook-ios-sdk'...
remote: Counting objects: 10427, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 10427 (delta 0), reused 0 (delta 0), pack-reused 10425
Receiving objects: 100% (10427/10427), 15.23 MiB | 63.00 KiB/s, done.
Resolving deltas: 100% (6887/6887), done.
Checking connectivity... done.
Submodule path 'XMPPFramework/Vendor/facebook-ios-sdk': checked out '41f9a1895e38f145d1868b23e35411e443c4a12e'
Submodule 'vendor/OCHamcrest' (git://github.com/hamcrest/OCHamcrest) registered for path 'vendor/OCHamcrest'
Submodule 'vendor/OCMock' (git://github.com/erikdoe/ocmock) registered for path 'vendor/OCMock'
Submodule 'vendor/OHHTTPStubs' (git://github.com/AliSoftware/OHHTTPStubs.git) registered for path 'vendor/OHHTTPStubs'
Cloning into 'vendor/OCHamcrest'...
remote: Counting objects: 14060, done.
remote: Total 14060 (delta 0), reused 0 (delta 0), pack-reused 14060
Receiving objects: 100% (14060/14060), 9.35 MiB | 1.58 MiB/s, done.
Resolving deltas: 100% (9070/9070), done.
Checking connectivity... done.
Submodule path 'XMPPFramework/Vendor/facebook-ios-sdk/vendor/OCHamcrest': checked out '5111f977f992d2d6b1a787d2c6f7b24d951096c3'
Submodule 'Source/XcodeCoverage' (git://github.com/jonreid/XcodeCoverage.git) registered for path 'Source/XcodeCoverage'
Cloning into 'Source/XcodeCoverage'...
remote: Counting objects: 398, done.
remote: Total 398 (delta 0), reused 0 (delta 0), pack-reused 398
Receiving objects: 100% (398/398), 324.43 KiB | 178.00 KiB/s, done.
Resolving deltas: 100% (218/218), done.
Checking connectivity... done.
Submodule path 'XMPPFramework/Vendor/facebook-ios-sdk/vendor/OCHamcrest/Source/XcodeCoverage': checked out '633541beb860e340b4406d3b3d2916948d9d3d08'
Cloning into 'vendor/OCMock'...
remote: Counting objects: 4961, done.
remote: Total 4961 (delta 0), reused 0 (delta 0), pack-reused 4961
Receiving objects: 100% (4961/4961), 9.00 MiB | 17.00 KiB/s, done.
Resolving deltas: 100% (3107/3107), done.
Checking connectivity... done.
Submodule path 'XMPPFramework/Vendor/facebook-ios-sdk/vendor/OCMock': checked out 'd7c45c4b0d7b8b285a597502d3938640bd751299'
Cloning into 'vendor/OHHTTPStubs'...
remote: Counting objects: 3894, done.
remote: Total 3894 (delta 0), reused 0 (delta 0), pack-reused 3894
Receiving objects: 100% (3894/3894), 1.14 MiB | 33.00 KiB/s, done.
Resolving deltas: 100% (2149/2149), done.
Checking connectivity... done.
Submodule path 'XMPPFramework/Vendor/facebook-ios-sdk/vendor/OHHTTPStubs': checked out '922e9ec23d80b16a9c1bebcd1930960bde922179'
Submodule 'OHHTTPStubs/UnitTests/AFNetworking' (http://github.com/AFNetworking/AFNetworking.git) registered for path 'OHHTTPStubs/UnitTests/AFNetworking'
Cloning into 'OHHTTPStubs/UnitTests/AFNetworking'...
remote: Counting objects: 13081, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 13081 (delta 0), reused 0 (delta 0), pack-reused 13075
Receiving objects: 100% (13081/13081), 4.59 MiB | 89.00 KiB/s, done.
Resolving deltas: 100% (8474/8474), done.
Checking connectivity... done.
Submodule path 'XMPPFramework/Vendor/facebook-ios-sdk/vendor/OHHTTPStubs/OHHTTPStubs/UnitTests/AFNetworking': checked out '121ef7afa8ce1b1cefdc5312f7e9d75f5af65b8d'
Entering 'XMPPFramework'
From https://github.com/robbiehanson/XMPPFramework
 * branch            master     -> FETCH_HEAD
Updating 93a37fe..6db0eff
Fast-forward
 .gitignore                                                                          |    3 +
 .travis.yml                                                                         |   12 +
 Authentication/Anonymous/XMPPAnonymousAuthentication.m                              |    2 +-
 Authentication/Digest-MD5/XMPPDigestMD5Authentication.m                             |   21 +-
 Authentication/Plain/XMPPPlainAuthentication.m                                      |   15 +-
 Authentication/SCRAM-SHA-1/XMPPSCRAMSHA1Authentication.m                            |   28 +-
 Authentication/X-Facebook-Platform/XMPPXFacebookPlatformAuthentication.m            |   10 +-
 Authentication/X-OAuth2-Google/XMPPXOAuth2Google.m                                  |    4 +-
 Authentication/XMPPCustomBinding.h                                                  |   93 ++
 Authentication/XMPPSASLAuthentication.h                                             |   16 +-
 Categories/NSXMLElement+XMPP.h                                                      |    8 +-
 Categories/NSXMLElement+XMPP.m                                                      |   94 +-
 Core/XMPP.h                                                                         |    1 +
 Core/XMPPConstants.h                                                                |   16 +
 Core/XMPPConstants.m                                                                |   10 +
 Core/XMPPElement.h                                                                  |    2 +-
 Core/XMPPElement.m                                                                  |   15 +-
 Core/XMPPIQ.m                                                                       |    4 +
 Core/XMPPInternal.h                                                                 |   61 +-
 Core/XMPPJID.h                                                                      |    2 +-
 Core/XMPPJID.m                                                                      |   21 +-
 Core/XMPPLogging.h                                                                  |    2 +-
 Core/XMPPMessage.m                                                                  |    6 +-
 Core/XMPPModule.m                                                                   |   36 +-
 Core/XMPPParser.m                                                                   |    4 +-
 Core/XMPPPresence.m                                                                 |    4 +
 Core/XMPPStream.h                                                                   |   84 +-
 Core/XMPPStream.m                                                                   |  895 +++++++++++-----
 Extensions/BandwidthMonitor/XMPPBandwidthMonitor.m                                  |   21 +-
 Extensions/CoreDataStorage/XMPPCoreDataStorage.m                                    |   53 +-
 Extensions/FileTransfer/XMPPFileTransfer.h                                          |   80 ++
 Extensions/FileTransfer/XMPPFileTransfer.m                                          |   11 +
 Extensions/FileTransfer/XMPPIncomingFileTransfer.h                                  |   80 ++
 Extensions/FileTransfer/XMPPIncomingFileTransfer.m                                  |  960 +++++++++++++++++
 Extensions/FileTransfer/XMPPOutgoingFileTransfer.h                                  |  140 +++
 Extensions/FileTransfer/XMPPOutgoingFileTransfer.m                                  | 2188 +++++++++++++++++++++++++++++++++++++++
 Extensions/GoogleSharedStatus/XMPPGoogleSharedStatus.m                              |   41 +-
 Extensions/ProcessOne/XMPPProcessOne.m                                              |    2 +-
 Extensions/Reconnect/XMPPReconnect.m                                                |    2 +-
 Extensions/Roster/CoreDataStorage/XMPPGroupCoreDataStorageObject.m                  |    2 +-
 Extensions/Roster/CoreDataStorage/XMPPResourceCoreDataStorageObject.m               |    4 +-
 Extensions/Roster/CoreDataStorage/XMPPRosterCoreDataStorage.m                       |   53 +-
 Extensions/Roster/CoreDataStorage/XMPPUserCoreDataStorageObject.h                   |    6 +-
 Extensions/Roster/CoreDataStorage/XMPPUserCoreDataStorageObject.m                   |   19 +-
 Extensions/Roster/MemoryStorage/XMPPResourceMemoryStorageObject.h                   |    2 +-
 Extensions/Roster/MemoryStorage/XMPPResourceMemoryStorageObject.m                   |   21 +-
 Extensions/Roster/MemoryStorage/XMPPRosterMemoryStorage.m                           |   58 +-
 Extensions/Roster/MemoryStorage/XMPPUserMemoryStorageObject.h                       |   18 +-
 Extensions/Roster/MemoryStorage/XMPPUserMemoryStorageObject.m                       |  110 +-
 Extensions/Roster/XMPPRoster.h                                                      |   20 +-
 Extensions/Roster/XMPPRoster.m                                                      |   25 +-
 Extensions/XEP-0009/XMPPIQ+JabberRPC.m                                              |    2 +-
 Extensions/XEP-0009/XMPPIQ+JabberRPCResonse.m                                       |   16 +-
 Extensions/XEP-0009/XMPPJabberRPCModule.m                                           |   24 +-
 Extensions/XEP-0016/XMPPPrivacy.m                                                   |   20 +-
 Extensions/XEP-0045/CoreDataStorage/XMPPRoomCoreDataStorage.m                       |    8 +-
 Extensions/XEP-0045/CoreDataStorage/XMPPRoomMessageCoreDataStorageObject.m          |    2 +-
 Extensions/XEP-0045/HybridStorage/XMPPRoomHybridStorage.m                           |   40 +-
 Extensions/XEP-0045/HybridStorage/XMPPRoomMessageHybridCoreDataStorageObject.m      |    2 +-
 Extensions/XEP-0045/HybridStorage/XMPPRoomOccupantHybridMemoryStorageObject.h       |    2 +-
 Extensions/XEP-0045/HybridStorage/XMPPRoomOccupantHybridMemoryStorageObject.m       |   24 +-
 Extensions/XEP-0045/MemoryStorage/XMPPRoomMemoryStorage.m                           |   22 +-
 Extensions/XEP-0045/MemoryStorage/XMPPRoomMessageMemoryStorageObject.h              |    2 +-
 Extensions/XEP-0045/MemoryStorage/XMPPRoomMessageMemoryStorageObject.m              |   30 +-
 Extensions/XEP-0045/MemoryStorage/XMPPRoomOccupantMemoryStorageObject.h             |    2 +-
 Extensions/XEP-0045/MemoryStorage/XMPPRoomOccupantMemoryStorageObject.m             |   18 +-
 Extensions/XEP-0045/XMPPMUC.h                                                       |   75 +-
 Extensions/XEP-0045/XMPPMUC.m                                                       |  223 +++-
 Extensions/XEP-0045/XMPPRoom.h                                                      |    4 +
 Extensions/XEP-0045/XMPPRoom.m                                                      |   28 +-
 Extensions/XEP-0054/CoreDataStorage/XMPPvCardCoreDataStorage.m                      |    4 +-
 Extensions/XEP-0054/XMPPvCardTemp.h                                                 |    2 +-
 Extensions/XEP-0054/XMPPvCardTemp.m                                                 |   11 +-
 Extensions/XEP-0054/XMPPvCardTempAdr.m                                              |    4 +-
 Extensions/XEP-0054/XMPPvCardTempBase.h                                             |    2 +-
 Extensions/XEP-0054/XMPPvCardTempBase.m                                             |   31 +-
 Extensions/XEP-0054/XMPPvCardTempEmail.m                                            |    4 +-
 Extensions/XEP-0054/XMPPvCardTempLabel.m                                            |    4 +-
 Extensions/XEP-0054/XMPPvCardTempTel.m                                              |    4 +-
 Extensions/XEP-0059/XMPPResultSet.m                                                 |    4 +-
 Extensions/XEP-0060/XMPPPubSub.h                                                    |   30 +
 Extensions/XEP-0060/XMPPPubSub.m                                                    |  171 ++-
 Extensions/XEP-0065/TURNSocket.m                                                    |   26 +-
 Extensions/XEP-0066/XMPPMessage+XEP_0066.m                                          |    2 +-
 Extensions/XEP-0077/XMPPRegistration.h                                              |   94 ++
 Extensions/XEP-0077/XMPPRegistration.m                                              |  237 +++++
 Extensions/XEP-0082/NSDate+XMPPDateTimeProfiles.m                                   |    1 +
 Extensions/XEP-0082/XMPPDateTimeProfiles.m                                          |    6 +-
 Extensions/XEP-0092/XMPPSoftwareVersion.h                                           |    8 +
 Extensions/XEP-0092/XMPPSoftwareVersion.m                                           |    2 +-
 Extensions/XEP-0115/CoreDataStorage/XMPPCapsResourceCoreDataStorageObject.m         |    2 +-
 Extensions/XEP-0115/XMPPCapabilities.m                                              |   48 +-
 Extensions/XEP-0136/CoreDataStorage/XMPPMessageArchivingCoreDataStorage.m           |    9 +-
 Extensions/XEP-0136/CoreDataStorage/XMPPMessageArchiving_Message_CoreDataObject.m   |    4 +-
 Extensions/XEP-0147/XMPPURI.h                                                       |   69 ++
 Extensions/XEP-0147/XMPPURI.m                                                       |  108 ++
 Extensions/XEP-0153/XMPPvCardAvatarModule.h                                         |    6 +-
 Extensions/XEP-0153/XMPPvCardAvatarModule.m                                         |    4 +-
 Extensions/XEP-0191/XMPPBlocking.m                                                  |   32 +-
 Extensions/XEP-0198/Memory Storage/XMPPStreamManagementMemoryStorage.h              |   14 +
 Extensions/XEP-0198/Memory Storage/XMPPStreamManagementMemoryStorage.m              |  211 ++++
 Extensions/XEP-0198/Private/XMPPStreamManagementStanzas.h                           |   35 +
 Extensions/XEP-0198/Private/XMPPStreamManagementStanzas.m                           |   85 ++
 Extensions/XEP-0198/XMPPStreamManagement.h                                          |  617 +++++++++++
 Extensions/XEP-0198/XMPPStreamManagement.m                                          | 1929 ++++++++++++++++++++++++++++++++++
 Extensions/XEP-0202/XMPPTime.m                                                      |    1 +
 Extensions/XEP-0203/NSXMLElement+XEP_0203.m                                         |    1 +
 Extensions/XEP-0280/XMPPMessage+XEP_0280.h                                          |   19 +
 Extensions/XEP-0280/XMPPMessage+XEP_0280.m                                          |  118 +++
 Extensions/XEP-0280/XMPPMessageCarbons.h                                            |   65 ++
 Extensions/XEP-0280/XMPPMessageCarbons.m                                            |  293 ++++++
 Extensions/XEP-0352/NSXMLElement+XEP_0352.h                                         |    9 +
 Extensions/XEP-0352/NSXMLElement+XEP_0352.m                                         |   18 +
 Sample_XMPPFramework.h                                                              |   79 --
 Utilities/GCDMulticastDelegate.m                                                    |    8 +-
 Utilities/XMPPIDTracker.m                                                           |   20 +-
 Utilities/XMPPSRVResolver.h                                                         |    7 +-
 Utilities/XMPPSRVResolver.m                                                         |   12 +-
 Utilities/XMPPTimer.h                                                               |   41 +
 Utilities/XMPPTimer.m                                                               |   86 ++
 Vendor/CocoaAsyncSocket/GCDAsyncSocket.h                                            |    4 +
 Vendor/CocoaAsyncSocket/GCDAsyncSocket.m                                            |   15 +
 Vendor/CocoaLumberjack/DDTTYLogger.m                                                |   12 +-
 Vendor/CocoaLumberjack/Extensions/DDDispatchQueueLogFormatter.m                     |    4 +-
 Vendor/KissXML/Categories/NSString+DDXML.h                                          |    6 +-
 Vendor/KissXML/DDXMLNode.h                                                          |    7 +-
 XMPPFramework.h                                                                     |    1 +
 XMPPFramework.podspec                                                               |  319 ++++++
 Xcode/DesktopXMPP/RequestController.m                                               |    4 +-
 Xcode/DesktopXMPP/RosterController.m                                                |    8 +-
 Xcode/DesktopXMPP/XMPPStream.xcodeproj/project.pbxproj                              |    2 +
 Xcode/ServerlessDemo/ServerlessDemo.xcodeproj/project.pbxproj                       |    2 +
 Xcode/Testing/AutoPingTest/Desktop/AutoPingTest.xcodeproj/project.pbxproj           |   22 +-
 Xcode/Testing/AutoPingTest/Desktop/AutoPingTest/AutoPingTestAppDelegate.m           |    2 +-
 Xcode/Testing/AutoPingTest/Mobile/AutoPingTest.xcodeproj/project.pbxproj            |   22 +-
 Xcode/Testing/AutoPingTest/Mobile/AutoPingTest/AutoPingTestAppDelegate.m            |    2 +-
 Xcode/Testing/AutoTimeTest/Desktop/AutoTimeTest.xcodeproj/project.pbxproj           |   44 +-
 Xcode/Testing/AutoTimeTest/Desktop/AutoTimeTest/AutoTimeTestAppDelegate.m           |    2 +-
 Xcode/Testing/AutoTimeTest/Mobile/AutoTimeTest.xcodeproj/project.pbxproj            |   46 +-
 Xcode/Testing/AutoTimeTest/Mobile/AutoTimeTest/AutoTimeTestAppDelegate.m            |    2 +-
 Xcode/Testing/FacebookTest/FacebookTest.xcodeproj/project.pbxproj                   |   56 +-
 Xcode/Testing/MUCTesting/MUCTesting.xcodeproj/project.pbxproj                       |   30 +-
 Xcode/Testing/MUCTesting/MUCTesting/MUCTestingAppDelegate.m                         |    2 +-
 .../MulticastDelegateTest/Desktop/MulticastDelegateTest.xcodeproj/project.pbxproj   |   22 +-
 Xcode/Testing/MulticastDelegateTest/Mobile/[email protected]                      |  Bin 0 -> 18594 bytes
 .../MulticastDelegateTest/Mobile/MulticastDelegateTest.xcodeproj/project.pbxproj    |   27 +-
 Xcode/Testing/ParserTestMac/ParserTestMac.xcodeproj/project.pbxproj                 |  112 +-
 Xcode/Testing/ParserTestMac/ParserTestMacAppDelegate.m                              |    2 +-
 Xcode/Testing/ParserTestPhone/Classes/ParserTestPhoneAppDelegate.m                  |    2 +-
 Xcode/Testing/ParserTestPhone/[email protected]                                   |  Bin 0 -> 18594 bytes
 Xcode/Testing/ParserTestPhone/ParserTestPhone.xcodeproj/project.pbxproj             |  141 +--
 .../Mac/TestCapabilitiesHashing/TestCapabilitiesHashing.xcodeproj/project.pbxproj   |   24 +-
 .../TestCapabilitiesHashing/TestCapabilitiesHashing.xcodeproj/project.pbxproj       |   18 +-
 Xcode/Testing/TestElementReceipt/TestElementReceipt.xcodeproj/project.pbxproj       |   18 +-
 Xcode/Testing/TestIDTracker/TestIDTracker.xcodeproj/project.pbxproj                 |  317 ++++++
 Xcode/Testing/TestSRVResolver/TestSRVResolver.xcodeproj/project.pbxproj             |    8 +-
 Xcode/Testing/TestSRVResolver/TestSRVResolverAppDelegate.m                          |    8 +-
 Xcode/Testing/TestXEP82/Mac/TestXEP82.xcodeproj/project.pbxproj                     |    6 +-
 Xcode/Testing/XMPPTesting.xcworkspace/contents.xcworkspacedata                      |   14 +-
 Xcode/Testing2/Podfile                                                              |   14 +
 Xcode/Testing2/Podfile.lock                                                         |   10 +
 Xcode/Testing2/XMPPFrameworkTests.xcworkspace/contents.xcworkspacedata              |   10 +
 .../XMPPFrameworkTests.xcworkspace/xcshareddata/XMPPFrameworkTests.xccheckout       |   41 +
 .../XMPPFrameworkTests/XMPPFrameworkCoreDataTests/CapabilitiesHashingTest.m         |  143 +++
 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkCoreDataTests/Info.plist             |   24 +
 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTests.xcodeproj/project.pbxproj      | 1174 +++++++++++++++++++++
 .../XMPPFrameworkTests.xcodeproj/xcshareddata/xcschemes/XMPPFrameworkTests.xcscheme |  136 +++
 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTests/AppDelegate.h                  |   17 +
 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTests/AppDelegate.m                  |   45 +
 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTests/Base.lproj/LaunchScreen.xib    |   41 +
 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTests/Base.lproj/Main.storyboard     |   25 +
 .../XMPPFrameworkTests/Images.xcassets/AppIcon.appiconset/Contents.json             |   38 +
 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTests/Info.plist                     |   40 +
 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTests/ViewController.h               |   15 +
 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTests/ViewController.m               |   27 +
 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTests/main.m                         |   16 +
 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTestsTests/EncodeDecodeTest.m        |  101 ++
 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTestsTests/Info.plist                |   24 +
 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTestsTests/MulticastDelegateTest.m   |  209 ++++
 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTestsTests/XMPPURITests.m            |   97 ++
 Xcode/iPhoneXMPP/Classes/RootViewController.m                                       |    6 +-
 Xcode/iPhoneXMPP/Classes/iPhoneXMPPAppDelegate.m                                    |   11 +-
 Xcode/iPhoneXMPP/iPhoneXMPP.xcodeproj/project.pbxproj                               |    8 +-
 module/module.modulemap                                                             |   19 +
 184 files changed, 13093 insertions(+), 1057 deletions(-)
 create mode 100644 .travis.yml
 create mode 100644 Authentication/XMPPCustomBinding.h
 create mode 100644 Core/XMPPConstants.h
 create mode 100644 Core/XMPPConstants.m
 create mode 100644 Extensions/FileTransfer/XMPPFileTransfer.h
 create mode 100644 Extensions/FileTransfer/XMPPFileTransfer.m
 create mode 100644 Extensions/FileTransfer/XMPPIncomingFileTransfer.h
 create mode 100644 Extensions/FileTransfer/XMPPIncomingFileTransfer.m
 create mode 100644 Extensions/FileTransfer/XMPPOutgoingFileTransfer.h
 create mode 100644 Extensions/FileTransfer/XMPPOutgoingFileTransfer.m
 create mode 100644 Extensions/XEP-0077/XMPPRegistration.h
 create mode 100644 Extensions/XEP-0077/XMPPRegistration.m
 create mode 100644 Extensions/XEP-0147/XMPPURI.h
 create mode 100644 Extensions/XEP-0147/XMPPURI.m
 create mode 100644 Extensions/XEP-0198/Memory Storage/XMPPStreamManagementMemoryStorage.h
 create mode 100644 Extensions/XEP-0198/Memory Storage/XMPPStreamManagementMemoryStorage.m
 create mode 100644 Extensions/XEP-0198/Private/XMPPStreamManagementStanzas.h
 create mode 100644 Extensions/XEP-0198/Private/XMPPStreamManagementStanzas.m
 create mode 100644 Extensions/XEP-0198/XMPPStreamManagement.h
 create mode 100644 Extensions/XEP-0198/XMPPStreamManagement.m
 create mode 100644 Extensions/XEP-0280/XMPPMessage+XEP_0280.h
 create mode 100644 Extensions/XEP-0280/XMPPMessage+XEP_0280.m
 create mode 100644 Extensions/XEP-0280/XMPPMessageCarbons.h
 create mode 100644 Extensions/XEP-0280/XMPPMessageCarbons.m
 create mode 100644 Extensions/XEP-0352/NSXMLElement+XEP_0352.h
 create mode 100644 Extensions/XEP-0352/NSXMLElement+XEP_0352.m
 delete mode 100644 Sample_XMPPFramework.h
 create mode 100644 Utilities/XMPPTimer.h
 create mode 100644 Utilities/XMPPTimer.m
 create mode 100644 XMPPFramework.h
 create mode 100644 XMPPFramework.podspec
 create mode 100644 Xcode/Testing/MulticastDelegateTest/Mobile/[email protected]
 create mode 100644 Xcode/Testing/ParserTestPhone/[email protected]
 create mode 100644 Xcode/Testing2/Podfile
 create mode 100644 Xcode/Testing2/Podfile.lock
 create mode 100644 Xcode/Testing2/XMPPFrameworkTests.xcworkspace/contents.xcworkspacedata
 create mode 100644 Xcode/Testing2/XMPPFrameworkTests.xcworkspace/xcshareddata/XMPPFrameworkTests.xccheckout
 create mode 100644 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkCoreDataTests/CapabilitiesHashingTest.m
 create mode 100644 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkCoreDataTests/Info.plist
 create mode 100644 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTests.xcodeproj/project.pbxproj
 create mode 100644 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTests.xcodeproj/xcshareddata/xcschemes/XMPPFrameworkTests.xcscheme
 create mode 100644 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTests/AppDelegate.h
 create mode 100644 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTests/AppDelegate.m
 create mode 100644 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTests/Base.lproj/LaunchScreen.xib
 create mode 100644 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTests/Base.lproj/Main.storyboard
 create mode 100644 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTests/Images.xcassets/AppIcon.appiconset/Contents.json
 create mode 100644 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTests/Info.plist
 create mode 100644 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTests/ViewController.h
 create mode 100644 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTests/ViewController.m
 create mode 100644 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTests/main.m
 create mode 100644 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTestsTests/EncodeDecodeTest.m
 create mode 100644 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTestsTests/Info.plist
 create mode 100644 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTestsTests/MulticastDelegateTest.m
 create mode 100644 Xcode/Testing2/XMPPFrameworkTests/XMPPFrameworkTestsTests/XMPPURITests.m
 create mode 100644 module/module.modulemap
licrifandeMacBook-Pro:SwiftXMPP crifan$
下载到了所有的依赖的代码:
got all dependency code include kissxml
然后,折腾了很多东西,解决了很多问题,经历千辛万苦终于编译通过了,然后运行显示出界面了:
swiftxmpp show main view
login name and password page
can input name and pwd

转载请注明:在路上 » [记录]swift中添加支持聊天框架XMPP

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
84 queries in 0.193 seconds, using 22.11MB memory